brcmfmac: handle FWHALT mailbox indication
authorArend Van Spriel <arend.vanspriel@broadcom.com>
Wed, 8 Nov 2017 13:36:31 +0000 (14:36 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 10 Nov 2017 02:28:47 +0000 (04:28 +0200)
commit2fd3877b5bb7d39782c3205a1dcda02023b8514a
treee94fd3a4a9202fbf13e8e71dbcf4215b7671f858
parent03e40f1e76808886f452b61761a292ddad25f43f
brcmfmac: handle FWHALT mailbox indication

The firmware uses a mailbox to communicate to the host what is going
on. In the driver we validate the bit received. Various people seen
the following message:

 brcmfmac: brcmf_sdio_hostmail: Unknown mailbox data content: 0x40012

Bit 4 is cause of this message, but this actually indicates the firmware
has halted. Handle this bit by giving a more meaningful error message.

Reviewed-by: Hante Meuleman <hante.meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com>
Reviewed-by: Franky Lin <franky.lin@broadcom.com>
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c