[PATH] libertas: speeds up downloading of CF firmware

Dan Williams dcbw at redhat.com
Fri May 23 09:41:55 EDT 2008


On Fri, 2008-05-23 at 10:18 +0200, Holger Schurig wrote:
> 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 at mail.mn-solutions.de>

Acked-by: Dan Williams <dcbw at redhat.com>

> --- 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;
>  }




More information about the libertas-dev mailing list