brcmfmac: add a function designated for handling firmware fails
authorRafał Miłecki <rafal@milecki.pl>
Tue, 26 Feb 2019 13:11:18 +0000 (14:11 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 4 Apr 2019 10:00:12 +0000 (13:00 +0300)
commita2ec87ddbf1637f854ffcfff9d12d392fa30758b
tree61c00d01d94539f0365277c1ec7e45ea4ad5a0e2
parentc9692820710f57c826b2e43a6fb1e4cd307508b0
brcmfmac: add a function designated for handling firmware fails

This improves handling PCIe firmware halts by printing a clear error
message and replaces a similar code in the SDIO bus support.

It will also allow further improvements like trying to recover from a
firmware crash.

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/pcie.c
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c