]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
rtw88: power on again if it was already on
authorYan-Hsuan Chuang <yhchuang@realtek.com>
Fri, 14 Jun 2019 07:24:12 +0000 (15:24 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 25 Jun 2019 05:08:59 +0000 (08:08 +0300)
commitd41673b941f2d3fdda62930f0e3eabb3aa0ccb2b
treeb2298b45b3814f1093c56738ae84667226ad49af
parente1cc056c92f9ee64e7031c614fe85654c3b72dbe
rtw88: power on again if it was already on

We could fail to power on because it was already on. If the return
value is -EALREADY, power off and then power on again to turn on the
hardware as expected.

Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/mac.c