mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
brcmfmac: check bus state for status
Bus state should be the correct flag for bus status. Use it instead of result from previous function call for backplane clock switch. Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com> Reviewed-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Franky Lin <frankyl@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
f0116fbfcb
commit
d9126e0c42
1 changed files with 1 additions and 1 deletions
|
@ -3509,7 +3509,7 @@ static int brcmf_sdbrcm_bus_init(struct device *dev)
|
|||
SBSDIO_FUNC1_CHIPCLKCSR, saveclk, &err);
|
||||
|
||||
/* If we didn't come up, turn off backplane clock */
|
||||
if (!ret)
|
||||
if (bus_if->state != BRCMF_BUS_DATA)
|
||||
brcmf_sdbrcm_clkctl(bus, CLK_NONE, false);
|
||||
|
||||
exit:
|
||||
|
|
Loading…
Reference in a new issue