brcmfmac: reset PCIe bus on a firmware crash
authorRafał Miłecki <rafal@milecki.pl>
Tue, 26 Feb 2019 13:11:19 +0000 (14:11 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 4 Apr 2019 10:00:13 +0000 (13:00 +0300)
commit4684997d9eea29380000e062755aa6d368d789a3
treebff2a95f840b6c3412fa8ed9ddef5f02ba346867
parenta2ec87ddbf1637f854ffcfff9d12d392fa30758b
brcmfmac: reset PCIe bus on a firmware crash

This includes bus reset & reloading a firmware. It should be sufficient
for a user space to (setup and) use a wireless device again.

Support for reset on USB & SDIO can be added later.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h
drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c
drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.h
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c