]> git.baikalelectronics.ru Git - kernel.git/commit
brcm80211: fmac: update bus state in common driver part
authorArend van Spriel <arend@broadcom.com>
Thu, 9 Feb 2012 20:09:05 +0000 (21:09 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Feb 2012 19:48:52 +0000 (14:48 -0500)
commit0fef4120450f6b25400f338b1d2353610a3a306c
treeeb4c8c9863726eeaf4ae5581de74937f0d847a43
parent0a8125599eb086a9db13ce2b1875ef0e4d6b94a0
brcm80211: fmac: update bus state in common driver part

The bus state is updated in the sdio bus init function, but it is
better to do it when the brcmf_bus_start() function is completed
successfully. The brcmf_netdev_open() function will return -EAGAIN
until the state is updated instead of calling brcmf_bus_start() to
avoid reentering that function.

Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c
drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c