mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
Revert "mt76: connac: do not schedule wake_work if the runtime-pm is disabled"
This reverts commit 53d915a23b.
Superseded by "mt76: mt7615: do not set MT76_STATE_PM at bootstrap"
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -104,9 +104,6 @@ mt76_connac_pm_ref(struct mt76_phy *phy, struct mt76_connac_pm *pm)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
if (!pm->enable)
|
||||
return true;
|
||||
|
||||
spin_lock_bh(&pm->wake.lock);
|
||||
if (test_bit(MT76_STATE_PM, &phy->state))
|
||||
goto out;
|
||||
@@ -122,9 +119,6 @@ out:
|
||||
static inline void
|
||||
mt76_connac_pm_unref(struct mt76_connac_pm *pm)
|
||||
{
|
||||
if (!pm->enable)
|
||||
return;
|
||||
|
||||
spin_lock_bh(&pm->wake.lock);
|
||||
pm->wake.count--;
|
||||
pm->last_activity = jiffies;
|
||||
|
||||
Reference in New Issue
Block a user