rtw89: disable FW and H2C function if CPU disabled
authorChia-Yuan Li <leo.li@realtek.com>
Thu, 17 Mar 2022 05:55:39 +0000 (13:55 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 17 Mar 2022 14:21:09 +0000 (16:21 +0200)
commitde78869d1f48a1e59a9a6850b8f85d6eaebdbd06
treeb0e71549c88b80ffc01565ce6c03840c7c4da627
parente07a99682972a20fca25748e6fdbd3962ed3b7b8
rtw89: disable FW and H2C function if CPU disabled

Initialize FW status and disabled H2C function if CPU disabled. Then, it
can reset to initial state.

Signed-off-by: Chia-Yuan Li <leo.li@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220317055543.40514-9-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/mac.c