rtw88: fix error handling when setup efuse info
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 2 Oct 2019 06:35:31 +0000 (14:35 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 4 Oct 2019 13:45:06 +0000 (16:45 +0300)
commitf4268729eb1eefe23f6746849c1b5626d9030532
treef4efc88d8af856ed4bc8736afc82b92b0b1538dd
parent4f5bb7ff8b8d4bafd91243fc969ed240e67aa1ca
rtw88: fix error handling when setup efuse info

Disable efuse if the efuse is enabled when we failed to setup the efuse
information, otherwise the hardware will not turn off.

Fixes: e3037485c68e ("rtw88: new Realtek 802.11ac driver")
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/main.c