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:
Felix Fietkau
2021-06-02 08:30:26 +02:00
parent 321443258b
commit d1652e8af9
-6
View File
@@ -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;