]> git.karo-electronics.de Git - linux-beck.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)
commit1bb1f38462bcf58cf98d8f7bedf2bfefd394f940
treeeb4c8c9863726eeaf4ae5581de74937f0d847a43
parentc0e89f084b5089acdfdda1cb45c88896fa0f5139
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