OSDN Git Service

brcmfmac: sdio: Increase the default timeouts a bit
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Mon, 25 Jan 2016 10:47:29 +0000 (11:47 +0100)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 11 Aug 2016 08:15:38 +0000 (16:15 +0800)
commit885a9eefc64933c22d389db19bcd28b3889fc14c
tree36b10efc2c10c514db496c3327c33c684686f577
parent63f27ffcd0687a9ef8405adcc622bfef2c9be06e
brcmfmac: sdio: Increase the default timeouts a bit

On a Radxa Rock2 board with a Ampak AP6335 (Broadcom 4339 core) it seems
the card responds very quickly most of the time, unfortunately during
initialisation it sometimes seems to take just a bit over 2 seconds to
respond.

This results intialization failing with message like:
  brcmf_c_preinit_dcmds: Retreiving cur_etheraddr failed, -52
  brcmf_bus_start: failed: -52
  brcmf_sdio_firmware_callback: dongle is not responding

Increasing the timeout to allow for a bit more headroom allows the
card to initialize reliably.

A quick search online after diagnosing/fixing this showed that Google
has a similar patch in their ChromeOS tree, so this doesn't seem
specific to the board I'm using.

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Reviewed-by: Julian Calaby <julian.calaby@gmail.com>
Acked-by: Arend van Spriel <arend@broadcom.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Conflicts:
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c

Change-Id: If0a19446dd538eed79924b72685461e5b7f00670
drivers/net/wireless/brcm80211/brcmfmac/sdio.c