Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATH] libertas: speeds up downloading of CF firmware
@ 2008-05-23  8:18 Holger Schurig
  2008-05-23 11:20 ` Andreas Schwab
  2008-05-23 13:41 ` Dan Williams
  0 siblings, 2 replies; 4+ messages in thread
From: Holger Schurig @ 2008-05-23  8:18 UTC (permalink / raw)
  To: libertas-dev, Dan Williams, linux-wireless, John W. Linville

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>

--- linux.orig/drivers/net/wireless/libertas/if_cs.c
+++ linux/drivers/net/wireless/libertas/if_cs.c
@@ -148,11 +148,11 @@
 {
 	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;
 }

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-05-23 13:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-23  8:18 [PATH] libertas: speeds up downloading of CF firmware Holger Schurig
2008-05-23 11:20 ` Andreas Schwab
2008-05-23 11:26   ` Holger Schurig
2008-05-23 13:41 ` Dan Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox