From d1652e8af9e1c4bcbe47fc9a1617421eb0144d69 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 2 Jun 2021 08:28:51 +0200 Subject: [PATCH] Revert "mt76: connac: do not schedule wake_work if the runtime-pm is disabled" This reverts commit 53d915a23bc9a025b53ce7c00248c38864a68e94. Superseded by "mt76: mt7615: do not set MT76_STATE_PM at bootstrap" Signed-off-by: Felix Fietkau --- mt76_connac.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mt76_connac.h b/mt76_connac.h index 9133b87f..63c1d1a6 100644 --- a/mt76_connac.h +++ b/mt76_connac.h @@ -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;