wifi: mt76: mt7921: fix the unfinished command of regd_notifier before suspend
authorMing Yen Hsieh <mingyen.hsieh@mediatek.com>
Tue, 16 Jan 2024 02:48:57 +0000 (10:48 +0800)
committerFelix Fietkau <nbd@nbd.name>
Thu, 22 Feb 2024 08:55:19 +0000 (09:55 +0100)
commitc2b22e26755c77299e1dffa2e17374cd28f7f3a7
treebf0ca7e8a8229a3601c1cac67619dd524d4086d2
parent420ad9182c0199512dbceb68922c6d606eb36c9c
wifi: mt76: mt7921: fix the unfinished command of regd_notifier before suspend

Before entering suspend, we need to ensure that all MCU command are
completed. In some cases, such as with regd_notifier, there is a
chance that CLC commands, will be executed before suspend.

Signed-off-by: Ming Yen Hsieh <mingyen.hsieh@mediatek.com>
Signed-off-by: Leon Yen <leon.yen@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/init.c
drivers/net/wireless/mediatek/mt76/mt7921/pci.c
drivers/net/wireless/mediatek/mt76/mt792x.h