From: Holger Schurig Date: Fri, 23 May 2008 08:18:26 +0000 (+0200) Subject: libertas: speeds up downloading of CF firmware X-Git-Tag: v2.6.27-rc1~969^2~337^2~62 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=93416c871f8588446e80780f7d62fabc131c276b;p=linux-2.6-omap-h63xx.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 54280e292ea..86bb1268885 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; }