wifi: mt76: mt7921: clear WM2 from MT7902 RX all_complete_mask
Subsystems (2)
PATCH 1/1 wifi: mt76: mt7921: clear WM2 from MT7902 RX all_complete_mask
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.
--- drivers/net/wireless/mediatek/mt76/mt7921/pci.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/wireless/mediatek/mt76/mt7921/pci.c +1 -0
@@ -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
Signature · 1 line
2.55.0