* [PATCH] wifi: mt76: mt7921: clear WM2 from MT7902 RX all_complete_mask
@ 2026-10-06 16:35 Mahesh Saran
0 siblings, 0 replies; only message in thread
From: Mahesh Saran @ 2026-10-06 16:35 UTC (permalink / raw)
To: linux-wireless
Cc: nbd, lorenzo, ryder.lee, shayne.chen, sean.wang, emery.hsin,
linux-kernel, Mahesh Saran
MT7902 does not have an MCU_WA ring and sets wm2_complete_mask to 0.
However, commit 83c65e82e5b2 ("wifi: mt76: connac2: apply new rx
all_complete_mask") populated all_complete_mask in the shared irq_map
template with MT_INT_RX_DONE_ALL, which includes MT_INT_RX_DONE_WM2.
Because MT7902 duplicates irq_map but only clears wm2_complete_mask,
its all_complete_mask still contains MT_INT_RX_DONE_WM2. This leaves
the MT7902 RX interrupt configuration inconsistent: the aggregate RX
completion mask includes WM2 even though the corresponding RX queue is
not present on MT7902.
Clear MT_INT_RX_DONE_WM2 from all_complete_mask for MT7902 as well.
Fixes: 83c65e82e5b2 ("wifi: mt76: connac2: apply new rx all_complete_mask")
Signed-off-by: Mahesh Saran <maheshsaran477@gmail.com>
---
drivers/net/wireless/mediatek/mt76/mt7921/pci.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/pci.c b/drivers/net/wireless/mediatek/mt76/mt7921/pci.c
index 56a914aaa81e..f87c44f2a8b6 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7921/pci.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7921/pci.c
@@ -375,6 +375,7 @@ static int mt7921_pci_probe(struct pci_dev *pdev,
}
map->rx.wm2_complete_mask = 0;
+ map->rx.all_complete_mask &= ~MT_INT_RX_DONE_WM2;
dev->irq_map = map;
}
base-commit: 69f80fef3153299d9c72c53d1d71eef6354b6926
--
2.55.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-06 16:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-06 16:35 [PATCH] wifi: mt76: mt7921: clear WM2 from MT7902 RX all_complete_mask Mahesh Saran
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®