brcmfmac: reset SDIO bus on a firmware crash
authorChi-Hsien Lin <chi-hsien.lin@cypress.com>
Mon, 22 Jun 2020 14:48:51 +0000 (09:48 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 14 Jul 2020 09:48:34 +0000 (12:48 +0300)
commit7836102a750a92ddec19b7cd997a76f05c0a16ea
tree5af7acecea395fc3dbc5048b57ff0143ab456b7b
parent0d9de08da52a6cbda290d125d96a0015e172186f
brcmfmac: reset SDIO bus on a firmware crash

commit 4684997d9eea ("brcmfmac: reset PCIe bus on a firmware crash")
adds a reset function to recover firmware trap for PCIe bus. This commit
adds an implementation for SDIO bus.

Upon SDIO firmware trap, do below:
 - Remove the device
 - Reset hardware
 - Probe the device again

Signed-off-by: Chi-Hsien Lin <chi-hsien.lin@cypress.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200622144851.165248-1-chi-hsien.lin@cypress.com
drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.h