brcmfmac: have sdio return -EIO when device communication is not possible
authorArend van Spriel <arend@broadcom.com>
Wed, 10 Jun 2015 22:12:20 +0000 (00:12 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 15 Jun 2015 09:55:22 +0000 (12:55 +0300)
commit5768f31e4e75e38d9101252aabe8ec7dc826da25
tree82244843f750aaeea17eeaa09f2dd160206e83d5
parent1f0dc59a6de93586fcfc04696a61946408ffc56a
brcmfmac: have sdio return -EIO when device communication is not possible

The bus interface functions txctl and rxctl may be used while the device
can not be accessed, eg. upon driver .remove() callback. This patch will
immediately return -EIO when this is the case which speeds up the module
unload.

Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/brcm80211/brcmfmac/bcmsdh.c
drivers/net/wireless/brcm80211/brcmfmac/sdio.c