From: Dan Williams Date: Thu, 15 Apr 2010 20:32:58 +0000 (-0700) Subject: libertas: Davinci platforms need more time loading helper firmware X-Git-Tag: MMI-PSA29.97-13-9~23873^2~167^2~280 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ac1a474d71d6cbf94bf26889da5768f5f2b0ca2b;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git libertas: Davinci platforms need more time loading helper firmware Davinci platforms apparently need more time in-between helper firmware blocks. Even though this is an increased delay, we only take this hit once at initialization time. Signed-off-by: Dan Williams Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/libertas/if_sdio.c b/drivers/net/wireless/libertas/if_sdio.c index 60dc9b64381d..68cc407054e3 100644 --- a/drivers/net/wireless/libertas/if_sdio.c +++ b/drivers/net/wireless/libertas/if_sdio.c @@ -499,6 +499,11 @@ static int if_sdio_prog_helper(struct if_sdio_card *card) if (ret) goto release; + /* On some platforms (like Davinci) the chip needs more time + * between helper blocks. + */ + mdelay(2); + chunk_size = min(size, (size_t)60); *((__le32*)chunk_buffer) = cpu_to_le32(chunk_size);