From: Sean Wang Date: Wed, 21 Apr 2021 10:43:51 +0000 (+0200) Subject: mt76: mt7921: mt7921_stop should put device in fw_own state X-Git-Tag: v5.15~1236^2~53^2^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=081b37aea5085fd1535651150c5742e19ccfea82;p=platform%2Fkernel%2Flinux-starfive.git mt76: mt7921: mt7921_stop should put device in fw_own state mt7921_stop should put device in fw_own state to reduce power consumption. Signed-off-by: Sean Wang Signed-off-by: Lorenzo Bianconi Signed-off-by: Felix Fietkau --- diff --git a/drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c b/drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c index b32f26c..6f180c9 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c @@ -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;