]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mt76: mt7603: rework/fix rx pse hang check
authorFelix Fietkau <nbd@nbd.name>
Fri, 28 Jul 2023 07:51:01 +0000 (09:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 10:56:48 +0000 (11:56 +0100)
commit33f73d154e4ed0ef7552811b2b3a38e556112610
tree2716bcfa3b4a4fe415e46fcbfd3a37111612d6e3
parent9c6b20fd5e8dd3027c019ca938c729ac1c0a7c1d
wifi: mt76: mt7603: rework/fix rx pse hang check

[ Upstream commit baa19b2e4b7bbb509a7ca7939c8785477dcd40ee ]

It turns out that the code in mt7603_rx_pse_busy() does not detect actual
hardware hangs, it only checks for busy conditions in PSE.
A reset should only be performed if these conditions are true and if there
is no rx activity as well.
Reset the counter whenever a rx interrupt occurs. In order to also deal with
a fully loaded CPU that leaves interrupts disabled with continuous NAPI
polling, also check for pending rx interrupts in the function itself.

Fixes: c8846e101502 ("mt76: add driver for MT7603E and MT7628/7688")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7603/core.c
drivers/net/wireless/mediatek/mt76/mt7603/mac.c