]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mt76: mt7615: do not set MT76_STATE_PM at bootstrap
authorLorenzo Bianconi <lorenzo@kernel.org>
Sat, 15 May 2021 13:26:12 +0000 (15:26 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 30 May 2021 16:19:45 +0000 (19:19 +0300)
commit02de318afa7a06216570ab69e028751590636a0e
tree4978cde8763c13dac32ffc9b807a34d390e253af
parent2c2bdd2372afcfcf24fe11c65ebe3361b7e1cd9f
mt76: mt7615: do not set MT76_STATE_PM at bootstrap

Remove MT76_STATE_PM in mt7615_init_device() and introduce
__mt7663s_mcu_drv_pmctrl for fw loading in mt7663s.
This patch fixes a crash at bootstrap for device (e.g. mt7622) that do
not support runtime-pm

Fixes: 7f2bc8ba11a0 ("mt76: connac: introduce wake counter for fw_pmctrl synchronization")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/e5a2618574007113d844874420f7855891abf167.1621085028.git.lorenzo@kernel.org
drivers/net/wireless/mediatek/mt76/mt7615/init.c
drivers/net/wireless/mediatek/mt76/mt7615/sdio_mcu.c
drivers/net/wireless/mediatek/mt76/mt7615/usb_mcu.c