brcmfmac: reset SDIO bus on a firmware crash

commit 4684997d9e ("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
This commit is contained in:
Chi-Hsien Lin 2020-06-22 09:48:51 -05:00 • committed by Kalle Valo
commit 7836102a75
3 changed files with 38 additions and 3 deletions