mirror of
https://github.com/torvalds/linux.git
synced 2026-10-08 03:26:02 +02:00
wifi: mt76: connac2: apply new rx all_complete_mask
Populate all_complete_mask in MT7921 irq_map and update pci_resume() and mac_reset() to use irq_map->rx.all_complete_mask instead of the hardcoded MT_INT_RX_DONE_ALL macro. This is a preparation patch before enabling MT7928 PCIe support. Signed-off-by: Emery Hsin <emery.hsin@mediatek.com> Link: https://patch.msgid.link/20260612075042.2577193-2-jb.tsai@mediatek.com Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
047dc4dc58
commit
83c65e82e5
|
|
@ -293,6 +293,7 @@ static int mt7921_pci_probe(struct pci_dev *pdev,
|
|||
.mcu_complete_mask = MT_INT_TX_DONE_MCU,
|
||||
},
|
||||
.rx = {
|
||||
.all_complete_mask = MT_INT_RX_DONE_ALL,
|
||||
.data_complete_mask = MT_INT_RX_DONE_DATA,
|
||||
.wm_complete_mask = MT_INT_RX_DONE_WM,
|
||||
.wm2_complete_mask = MT_INT_RX_DONE_WM2,
|
||||
|
|
@ -560,7 +561,8 @@ static int mt7921_pci_resume(struct device *device)
|
|||
mt76_wr(dev, MT_PCIE_MAC_INT_ENABLE, 0xff);
|
||||
mt76_connac_irq_enable(&dev->mt76,
|
||||
dev->irq_map->tx.all_complete_mask |
|
||||
MT_INT_RX_DONE_ALL | MT_INT_MCU_CMD);
|
||||
dev->irq_map->rx.all_complete_mask |
|
||||
MT_INT_MCU_CMD);
|
||||
mt76_set(dev, MT_MCU2HOST_SW_INT_ENA, MT_MCU_CMD_WAKE_RX_PCIE);
|
||||
|
||||
/* put dma enabled */
|
||||
|
|
|
|||
|
|
@ -96,7 +96,8 @@ int mt7921e_mac_reset(struct mt792x_dev *dev)
|
|||
|
||||
mt76_wr(dev, dev->irq_map->host_irq_enable,
|
||||
dev->irq_map->tx.all_complete_mask |
|
||||
MT_INT_RX_DONE_ALL | MT_INT_MCU_CMD);
|
||||
dev->irq_map->rx.all_complete_mask |
|
||||
MT_INT_MCU_CMD);
|
||||
mt76_wr(dev, MT_PCIE_MAC_INT_ENABLE, 0xff);
|
||||
|
||||
err = mt7921e_driver_own(dev);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user