mt76: mt7921: mt7921_stop should put device in fw_own state
authorSean Wang <sean.wang@mediatek.com>
Wed, 21 Apr 2021 10:43:51 +0000 (12:43 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 21 Apr 2021 18:55:55 +0000 (20:55 +0200)
mt7921_stop should put device in fw_own state to reduce
power consumption.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c

index b32f26c..6f180c9 100644 (file)
@@ -37,7 +37,7 @@ void mt76_connac_power_save_sched(struct mt76_phy *phy,
        if (!mt76_is_mmio(dev))
                return;
 
-       if (!pm->enable || !test_bit(MT76_STATE_RUNNING, &phy->state))
+       if (!pm->enable)
                return;
 
        pm->last_activity = jiffies;