wifi: mt76: mt7925: fix the lock inversion in suspend and resume

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 <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Devin Wittmayer
2026-09-01 13:25:05 +02:00
committed by Felix Fietkau
parent 62c038aa3e
commit 4d82c99620
+8 -8
View File
@@ -1732,10 +1732,10 @@ static int mt7925_suspend(struct ieee80211_hw *hw,
mt792x_mutex_acquire(dev); mt792x_mutex_acquire(dev);
clear_bit(MT76_STATE_RUNNING, &phy->mt76->state); clear_bit(MT76_STATE_RUNNING, &phy->mt76->state);
ieee80211_iterate_active_interfaces(hw, ieee80211_iterate_active_interfaces_mtx(hw,
IEEE80211_IFACE_ITER_RESUME_ALL, IEEE80211_IFACE_ITER_RESUME_ALL,
mt7925_mcu_set_suspend_iter, mt7925_mcu_set_suspend_iter,
&dev->mphy); &dev->mphy);
mt792x_mutex_release(dev); mt792x_mutex_release(dev);
@@ -1750,10 +1750,10 @@ static int mt7925_resume(struct ieee80211_hw *hw)
mt792x_mutex_acquire(dev); mt792x_mutex_acquire(dev);
set_bit(MT76_STATE_RUNNING, &phy->mt76->state); set_bit(MT76_STATE_RUNNING, &phy->mt76->state);
ieee80211_iterate_active_interfaces(hw, ieee80211_iterate_active_interfaces_mtx(hw,
IEEE80211_IFACE_ITER_RESUME_ALL, IEEE80211_IFACE_ITER_RESUME_ALL,
mt7925_mcu_set_suspend_iter, mt7925_mcu_set_suspend_iter,
&dev->mphy); &dev->mphy);
ieee80211_queue_delayed_work(hw, &phy->mt76->mac_work, ieee80211_queue_delayed_work(hw, &phy->mt76->mac_work,
MT792x_WATCHDOG_TIME); MT792x_WATCHDOG_TIME);