libertas: speeds up downloading of CF firmware
authorHolger Schurig <hs4233@mail.mn-solutions.de>
Fri, 23 May 2008 08:18:26 +0000 (10:18 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 3 Jun 2008 19:00:15 +0000 (15:00 -0400)
Keep the timeout the same (1000*500 == 100000 * 5), but take shorter
naps. Makes downloading the firmware slightly faster.

Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/if_cs.c

index 54280e292ea59ffea89aa9d7465442cf37c85463..86bb1268885a292e01ff6b02442972d9910cedb9 100644 (file)
@@ -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;
 }