From: Holger Schurig Date: Fri, 23 May 2008 08:18:26 +0000 (+0200) Subject: libertas: speeds up downloading of CF firmware X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=93416c871f8588446e80780f7d62fabc131c276b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git libertas: speeds up downloading of CF firmware Keep the timeout the same (1000*500 == 100000 * 5), but take shorter naps. Makes downloading the firmware slightly faster. Signed-off-by: Holger Schurig Acked-by: Dan Williams Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/libertas/if_cs.c b/drivers/net/wireless/libertas/if_cs.c index 54280e292ea5..86bb1268885a 100644 --- a/drivers/net/wireless/libertas/if_cs.c +++ b/drivers/net/wireless/libertas/if_cs.c @@ -148,11 +148,11 @@ static int if_cs_poll_while_fw_download(struct if_cs_card *card, uint addr, u8 r { int i; - for (i = 0; i < 1000; i++) { + for (i = 0; i < 100000; i++) { u8 val = if_cs_read8(card, addr); if (val == reg) return i; - udelay(500); + udelay(5); } return -ETIME; }