]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mt76: mt7921: fix PCI DMA hang after reboot
authorDeren Wu <deren.wu@mediatek.com>
Tue, 14 Feb 2023 02:49:57 +0000 (10:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 May 2023 14:11:16 +0000 (23:11 +0900)
commita76eaaaafd8b408238d7865bbbbd311f08988f3d
tree934c7b319539b3d561859e8a9822943424cd9426
parent261fcfc94e4689e56649776cf7ca1ea7bac4ebaf
wifi: mt76: mt7921: fix PCI DMA hang after reboot

[ Upstream commit 9270270d62191b7549296721e8d5f3dc0df01563 ]

mt7921 just stop some workers and clean up chip status before reboot.
In stress test, there are working activities still running at the period
of .shutdown callback and that would cause some hosts cannot recover
DMA after reboot. To avoid the floating state in reboot, we use
mt7921_pci_remove() to fully deinit all resources.

Fixes: f23a0cea8bd6 ("wifi: mt76: mt7921e: add pci .shutdown() support")
Signed-off-by: Deren Wu <deren.wu@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7921/pci.c