]> git.karo-electronics.de Git - linux-beck.git/commit
brcmfmac: sdio: shorten retry loop in brcmf_sdio_kso_control()
authorArend Van Spriel <arend.vanspriel@broadcom.com>
Mon, 5 Sep 2016 10:42:13 +0000 (11:42 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 9 Sep 2016 09:12:15 +0000 (12:12 +0300)
commit5251b6be8bb5c5675bdf12347c7b83937a5c91e5
treee1886c189a6c6b87c41ac3e5f5d905e4059d4a1d
parent634faf3686900ccdee87b77e2c56df8b2159912b
brcmfmac: sdio: shorten retry loop in brcmf_sdio_kso_control()

In brcmf_sdio_kso_control() there is a retry loop as hardware may take
time to settle. However, when the call to brcmf_sdiod_regrb() returns
an error it is due to SDIO access failure and it makes no sense to wait
for hardware to settle. This patch aborts the loop after a number of
subsequent access errors.

Reviewed-by: Hante Meuleman <hante.meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com>
Reviewed-by: Franky Lin <franky.lin@broadcom.com>
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c