mt76: mt7921: do not always disable fw runtime-pm
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 31 Dec 2021 11:36:02 +0000 (12:36 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 3 Feb 2022 12:57:58 +0000 (13:57 +0100)
commitb44eeb8cbdf2b88f2844f11e4f263b0abed5b5b0
tree556f3f124ab9b6f43bc9b6e1ebdb278dce4e77d8
parent988845c9361a0279d061ad7c2afebf54065b2e83
mt76: mt7921: do not always disable fw runtime-pm

After commit 'd430dffbe9dd ("mt76: mt7921: fix a possible race
enabling/disabling runtime-pm")', runtime-pm is always disabled in the
fw even if the user requests to enable it toggling debugfs node since
mt7921_pm_interface_iter routine will use pm->enable to configure the fw.
Fix the issue moving enable variable configuration before running
mt7921_pm_interface_iter routine.

Fixes: d430dffbe9dd ("mt76: mt7921: fix a possible race enabling/disabling runtime-pm")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/debugfs.c