Search Linux Wireless

Re: [PATCH, take 2] libertas: fixes for slow hardware

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2007-10-09 at 10:41 +0200, Holger Schurig wrote:
> Fixes for slow hardware.
> 
> Signed-off-by: Vitaly V. Bursov <vitalyvb@xxxxxxx>
> Signed-off-by: Holger Schurig <hs4233@xxxxxxxxxxxxxxxxxxxx>

Acked-by: Dan Williams <dcbw@xxxxxxxxxx>

> Index: libertas-2.6/drivers/net/wireless/libertas/if_cs.c
> ===================================================================
> --- libertas-2.6.orig/drivers/net/wireless/libertas/if_cs.c	2007-10-09 11:40:37.000000000 +0200
> +++ libertas-2.6/drivers/net/wireless/libertas/if_cs.c	2007-10-09 11:40:50.000000000 +0200
> @@ -148,11 +148,11 @@ static int if_cs_poll_while_fw_download(
>  {
>  	int i;
>  
> -	for (i = 0; i < 500; i++) {
> +	for (i = 0; i < 1000; i++) {
>  		u8 val = if_cs_read8(card, addr);
>  		if (val == reg)
>  			return i;
> -		udelay(100);
> +		udelay(500);
>  	}
>  	return -ETIME;
>  }
> @@ -878,6 +878,9 @@ static int if_cs_probe(struct pcmcia_dev
>  		goto out3;
>  	}
>  
> +	/* Clear any interrupt cause that happend while sending
> +	 * firmware/initializing card */
> +	if_cs_write16(card, IF_CS_C_INT_CAUSE, IF_CS_C_IC_MASK);
>  	if_cs_enable_ints(card);
>  
>  	/* And finally bring the card up */
> 

-
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux