mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7921s: make pm->suspended usage consistent
Update pm->suspended usage to be consistent with mt7921e driver. Signed-off-by: Sean Wang <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+5
-2
@@ -278,7 +278,6 @@ static int mt7921s_resume(struct device *__dev)
|
||||
struct mt76_dev *mdev = &dev->mt76;
|
||||
int err;
|
||||
|
||||
pm->suspended = false;
|
||||
clear_bit(MT76_STATE_SUSPEND, &mdev->phy.state);
|
||||
|
||||
err = mt7921_mcu_drv_pmctrl(dev);
|
||||
@@ -294,7 +293,11 @@ static int mt7921s_resume(struct device *__dev)
|
||||
if (!pm->ds_enable)
|
||||
mt76_connac_mcu_set_deep_sleep(mdev, false);
|
||||
|
||||
return mt76_connac_mcu_set_hif_suspend(mdev, false);
|
||||
err = mt76_connac_mcu_set_hif_suspend(mdev, false);
|
||||
|
||||
pm->suspended = false;
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
static const struct dev_pm_ops mt7921s_pm_ops = {
|
||||
|
||||
Reference in New Issue
Block a user