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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 26 Jan 2020 09:01:03 +0000 (10:01 +0100)
commitf88ed5cf0d995b3a095839141dbd4eee49f0b913
tree6489a5482e2d663c02127118391fefe6d7c56080
parent6b6d5f5338e82e21cf78e72828b79c861db0efab
rtw88: fix error handling when setup efuse info

commit f4268729eb1eefe23f6746849c1b5626d9030532 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/realtek/rtw88/main.c