]> git.baikalelectronics.ru Git - kernel.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)
committerFelix Fietkau <nbd@nbd.name>
Thu, 3 Feb 2022 12:57:59 +0000 (13:57 +0100)
commita76398e2450e1b6d9e1a5c97cbb30dbbd6f5b72c
treeddb763ef56eafe2e17668cf6926dbf83a03c0dc0
parent25dfb05521ae0421f485726ec05e4b08493df861
mt76: mt7921s: fix mt7921s_mcu_[fw|drv]_pmctrl

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: cb31575e0168 ("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>
drivers/net/wireless/mediatek/mt76/mt7921/sdio_mcu.c
drivers/net/wireless/mediatek/mt76/sdio.h