* [PATCH wireless 0/2] wifi: mt76: the same lock inversion in suspend and resume
@ 2026-08-30 6:41 Devin Wittmayer
2026-08-30 6:42 ` [PATCH wireless 1/2] wifi: mt76: mt7921: fix the " Devin Wittmayer
2026-08-30 6:42 ` [PATCH wireless 2/2] wifi: mt76: mt7925: " Devin Wittmayer
0 siblings, 2 replies; 3+ messages in thread
From: Devin Wittmayer @ 2026-08-30 6:41 UTC (permalink / raw)
To: Felix Fietkau, Lorenzo Bianconi
Cc: linux-wireless, linux-mediatek, Ryder Lee, Shayne Chen, Sean Wang,
Deren Wu, Johannes Berg
Follow-up to the config-path fix taken on 10 August. Suspend and resume
do the same thing and were missed. One word each, four sites.
Devin Wittmayer (2):
wifi: mt76: mt7921: fix the lock inversion in suspend and resume
wifi: mt76: mt7925: fix the lock inversion in suspend and resume
drivers/net/wireless/mediatek/mt76/mt7921/main.c | 16 ++++++++--------
drivers/net/wireless/mediatek/mt76/mt7925/main.c | 16 ++++++++--------
2 files changed, 16 insertions(+), 16 deletions(-)
--
2.55.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH wireless 1/2] wifi: mt76: mt7921: fix the lock inversion in suspend and resume
2026-08-30 6:41 [PATCH wireless 0/2] wifi: mt76: the same lock inversion in suspend and resume Devin Wittmayer
@ 2026-08-30 6:42 ` Devin Wittmayer
2026-08-30 6:42 ` [PATCH wireless 2/2] wifi: mt76: mt7925: " Devin Wittmayer
1 sibling, 0 replies; 3+ messages in thread
From: Devin Wittmayer @ 2026-08-30 6:42 UTC (permalink / raw)
To: Felix Fietkau, Lorenzo Bianconi
Cc: linux-wireless, linux-mediatek, Ryder Lee, Shayne Chen, Sean Wang,
Deren Wu, Johannes Berg
Same inversion as the config path, same one word fix, missed the
first time. Both are called with the wiphy mutex held, so the walk
can rely on that instead of taking the list mutex.
No new splat: same class pair as the accepted fix, and lockdep
reports a pair once per boot.
Fixes: ffa1bf97425b ("mt76: mt7921: introduce PM support")
Link: https://patch.msgid.link/20260810045338.118923-2-lucid_duck@justthetip.ca
Signed-off-by: Devin Wittmayer <lucid_duck@justthetip.ca>
---
drivers/net/wireless/mediatek/mt76/mt7921/main.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/main.c b/drivers/net/wireless/mediatek/mt76/mt7921/main.c
index 68a059504e83..bd8d969dfee5 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7921/main.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7921/main.c
@@ -1156,10 +1156,10 @@ static int mt7921_suspend(struct ieee80211_hw *hw,
mt792x_mutex_acquire(dev);
clear_bit(MT76_STATE_RUNNING, &phy->mt76->state);
- ieee80211_iterate_active_interfaces(hw,
- IEEE80211_IFACE_ITER_RESUME_ALL,
- mt7921_mcu_set_suspend_iter,
- &dev->mphy);
+ ieee80211_iterate_active_interfaces_mtx(hw,
+ IEEE80211_IFACE_ITER_RESUME_ALL,
+ mt7921_mcu_set_suspend_iter,
+ &dev->mphy);
mt792x_mutex_release(dev);
@@ -1174,10 +1174,10 @@ static int mt7921_resume(struct ieee80211_hw *hw)
mt792x_mutex_acquire(dev);
set_bit(MT76_STATE_RUNNING, &phy->mt76->state);
- ieee80211_iterate_active_interfaces(hw,
- IEEE80211_IFACE_ITER_RESUME_ALL,
- mt76_connac_mcu_set_suspend_iter,
- &dev->mphy);
+ ieee80211_iterate_active_interfaces_mtx(hw,
+ IEEE80211_IFACE_ITER_RESUME_ALL,
+ mt76_connac_mcu_set_suspend_iter,
+ &dev->mphy);
ieee80211_queue_delayed_work(hw, &phy->mt76->mac_work,
MT792x_WATCHDOG_TIME);
--
2.55.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH wireless 2/2] wifi: mt76: mt7925: fix the lock inversion in suspend and resume
2026-08-30 6:41 [PATCH wireless 0/2] wifi: mt76: the same lock inversion in suspend and resume Devin Wittmayer
2026-08-30 6:42 ` [PATCH wireless 1/2] wifi: mt76: mt7921: fix the " Devin Wittmayer
@ 2026-08-30 6:42 ` Devin Wittmayer
1 sibling, 0 replies; 3+ messages in thread
From: Devin Wittmayer @ 2026-08-30 6:42 UTC (permalink / raw)
To: Felix Fietkau, Lorenzo Bianconi
Cc: linux-wireless, linux-mediatek, Ryder Lee, Shayne Chen, Sean Wang,
Deren Wu, Johannes Berg
Same as the previous patch, other driver.
Fixes: c948b5da6bbe ("wifi: mt76: mt7925: add Mediatek Wi-Fi7 driver for mt7925 chips")
Signed-off-by: Devin Wittmayer <lucid_duck@justthetip.ca>
---
drivers/net/wireless/mediatek/mt76/mt7925/main.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/net/wireless/mediatek/mt76/mt7925/main.c b/drivers/net/wireless/mediatek/mt76/mt7925/main.c
index 84b55f008b3d..44ac2d5e1bdc 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7925/main.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7925/main.c
@@ -1717,10 +1717,10 @@ static int mt7925_suspend(struct ieee80211_hw *hw,
mt792x_mutex_acquire(dev);
clear_bit(MT76_STATE_RUNNING, &phy->mt76->state);
- ieee80211_iterate_active_interfaces(hw,
- IEEE80211_IFACE_ITER_RESUME_ALL,
- mt7925_mcu_set_suspend_iter,
- &dev->mphy);
+ ieee80211_iterate_active_interfaces_mtx(hw,
+ IEEE80211_IFACE_ITER_RESUME_ALL,
+ mt7925_mcu_set_suspend_iter,
+ &dev->mphy);
mt792x_mutex_release(dev);
@@ -1735,10 +1735,10 @@ static int mt7925_resume(struct ieee80211_hw *hw)
mt792x_mutex_acquire(dev);
set_bit(MT76_STATE_RUNNING, &phy->mt76->state);
- ieee80211_iterate_active_interfaces(hw,
- IEEE80211_IFACE_ITER_RESUME_ALL,
- mt7925_mcu_set_suspend_iter,
- &dev->mphy);
+ ieee80211_iterate_active_interfaces_mtx(hw,
+ IEEE80211_IFACE_ITER_RESUME_ALL,
+ mt7925_mcu_set_suspend_iter,
+ &dev->mphy);
ieee80211_queue_delayed_work(hw, &phy->mt76->mac_work,
MT792x_WATCHDOG_TIME);
--
2.55.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-08-30 6:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-30 6:41 [PATCH wireless 0/2] wifi: mt76: the same lock inversion in suspend and resume Devin Wittmayer
2026-08-30 6:42 ` [PATCH wireless 1/2] wifi: mt76: mt7921: fix the " Devin Wittmayer
2026-08-30 6:42 ` [PATCH wireless 2/2] wifi: mt76: mt7925: " Devin Wittmayer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox