Skip to content

Commit 76a4c68

Browse files
Arend van Spriellinvjw
authored andcommitted
brcmfmac: only disable clock when brcmf_sdio_bus_init() fails
The condition to disable the clock at the end of brcmf_sdio_bus_init() was wrong as the bus state is updated by the calling function. Hence, the clock was always disabled after brcmf_sdio_bus_init() which was not the intended behaviour. Reviewed-by: Hante Meuleman <[email protected]> Reviewed-by: Franky Lin <[email protected]> Reviewed-by: Pieter-Paul Giesberts <[email protected]> Signed-off-by: Arend van Spriel <[email protected]> Signed-off-by: John W. Linville <[email protected]>
1 parent d6ae2c5 commit 76a4c68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3630,7 +3630,7 @@ static int brcmf_sdio_bus_init(struct device *dev)
36303630
}
36313631

36323632
/* If we didn't come up, turn off backplane clock */
3633-
if (bus_if->state != BRCMF_BUS_DATA)
3633+
if (ret != 0)
36343634
brcmf_sdio_clkctl(bus, CLK_NONE, false);
36353635

36363636
exit:

0 commit comments

Comments
 (0)