]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mt76: mt7921s: fix mt7921s_mcu_[fw|drv]_pmctrl
authorLeon Yen <leon.yen@mediatek.com>
Thu, 6 Jan 2022 19:50:10 +0000 (03:50 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:58:02 +0000 (13:58 +0200)
commit0c151aa574d716ce1096edf0c471473ec657d31a
tree375a27e97456f8311e6da1f1a9ba0ddc6df1b2c7
parent6b84089d6baa1ff09a6c5813617d35ba37415a6a
mt76: mt7921s: fix mt7921s_mcu_[fw|drv]_pmctrl

[ Upstream commit b12deb5e86fa36dc6f3aa3321f5da27addec4f1f ]

According to the firmware behavior (even the oldest one in linux-firmware)
If the firmware is downloaded, MT7921S must rely on the additional mailbox
mechanism that resides in firmware to check if the device is the right
state for mt7921s_mcu_[fw|drv]_pmctrl. Otherwise, we still apply the old
way for that.

That is a necessary patch before we enable runtime pm for mt7921s as
default.

Fixes: 48fab5bbef40 ("mt76: mt7921: introduce mt7921s support")
Co-developed-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Leon Yen <leon.yen@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7921/sdio_mcu.c
drivers/net/wireless/mediatek/mt76/sdio.h