mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7921: move shared runtime-pm code on mt792x-lib
Moving hif_ops marcos in mt792x.h, we can move shared runtime-pm code between mt7925 and mt7921 in mt792x-lib module. Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Deren Wu <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
0b1603ce70
commit
e07540abe8
+3
-3
@@ -337,7 +337,7 @@ static int mt7921_pci_suspend(struct device *device)
|
||||
cancel_delayed_work_sync(&pm->ps_work);
|
||||
cancel_work_sync(&pm->wake_work);
|
||||
|
||||
err = mt7921_mcu_drv_pmctrl(dev);
|
||||
err = mt792x_mcu_drv_pmctrl(dev);
|
||||
if (err < 0)
|
||||
goto restore_suspend;
|
||||
|
||||
@@ -372,7 +372,7 @@ static int mt7921_pci_suspend(struct device *device)
|
||||
synchronize_irq(pdev->irq);
|
||||
tasklet_kill(&mdev->irq_tasklet);
|
||||
|
||||
err = mt7921_mcu_fw_pmctrl(dev);
|
||||
err = mt792x_mcu_fw_pmctrl(dev);
|
||||
if (err)
|
||||
goto restore_napi;
|
||||
|
||||
@@ -406,7 +406,7 @@ static int mt7921_pci_resume(struct device *device)
|
||||
struct mt76_connac_pm *pm = &dev->pm;
|
||||
int i, err;
|
||||
|
||||
err = mt7921_mcu_drv_pmctrl(dev);
|
||||
err = mt792x_mcu_drv_pmctrl(dev);
|
||||
if (err < 0)
|
||||
goto failed;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user