[PATCH v2 1/4] mt76: mt7921: clear pm->suspended in mt7921_mac_reset_work
sean.wang at mediatek.com
sean.wang at mediatek.com
Wed Dec 15 13:25:34 PST 2021
From: Sean Wang <sean.wang at mediatek.com>
clear pm->suspended in mt7921_mac_reset_work to allow pm runtime
can be enabled after wifi reset in any circumstance.
Signed-off-by: Sean Wang <sean.wang at mediatek.com>
---
v2: create a new patch for the following ones
---
drivers/net/wireless/mediatek/mt76/mt7921/mac.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/mac.c b/drivers/net/wireless/mediatek/mt76/mt7921/mac.c
index edf54b192f37..a0f23047f13c 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7921/mac.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7921/mac.c
@@ -1399,6 +1399,7 @@ void mt7921_mac_reset_work(struct work_struct *work)
}
dev->hw_full_reset = false;
+ pm->suspended = false;
ieee80211_wake_queues(hw);
ieee80211_iterate_active_interfaces(hw,
IEEE80211_IFACE_ITER_RESUME_ALL,
--
2.25.1
More information about the Linux-mediatek
mailing list