]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6580a458acfadb72dcf3e068e2c90d2f11a92171
tree82244843f750aaeea17eeaa09f2dd160206e83d5
parent90213b97192665c61fa6a0d0d73caf6494432a3a
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