From: Mahesh Saran <maheshsaran477@gmail.com>
To: linux-wireless@vger.kernel.org
Cc: nbd@nbd.name, lorenzo@kernel.org, ryder.lee@mediatek.com,
shayne.chen@mediatek.com, sean.wang@mediatek.com,
emery.hsin@mediatek.com, linux-kernel@vger.kernel.org,
Mahesh Saran <maheshsaran477@gmail.com>
Subject: [PATCH] wifi: mt76: mt7921: clear WM2 from MT7902 RX all_complete_mask
Date: Tue, 6 Oct 2026 22:05:53 +0530 [thread overview]
Message-ID: <20261006163553.11193-1-maheshsaran477@gmail.com> (raw)
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
reply other threads:[~2026-10-06 16:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261006163553.11193-1-maheshsaran477@gmail.com \
--to=maheshsaran477@gmail.com \
--cc=emery.hsin@mediatek.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=lorenzo@kernel.org \
--cc=nbd@nbd.name \
--cc=ryder.lee@mediatek.com \
--cc=sean.wang@mediatek.com \
--cc=shayne.chen@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®