mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7663s: enable runtime-pm
Allow the user to enable runtime-pm for mt7663s driver Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
529d55a790
commit
ef44ff116e
+2
-2
@@ -10,7 +10,7 @@ int mt76_connac_pm_wake(struct mt76_phy *phy, struct mt76_connac_pm *pm)
|
||||
if (!pm->enable)
|
||||
return 0;
|
||||
|
||||
if (!mt76_is_mmio(dev))
|
||||
if (mt76_is_usb(dev))
|
||||
return 0;
|
||||
|
||||
cancel_delayed_work_sync(&pm->ps_work);
|
||||
@@ -37,7 +37,7 @@ void mt76_connac_power_save_sched(struct mt76_phy *phy,
|
||||
{
|
||||
struct mt76_dev *dev = phy->dev;
|
||||
|
||||
if (!mt76_is_mmio(dev))
|
||||
if (mt76_is_usb(dev))
|
||||
return;
|
||||
|
||||
if (!pm->enable)
|
||||
|
||||
Reference in New Issue
Block a user