[rt2x00-users] [RFC/RFT] rt2x00: use rt2800_config_channel_rt3x for rt2872

Antonio Quartulli ordex at ritirata.org
Sat Apr 10 14:34:12 UTC 2010


On sab, apr 10, 2010 at 03:57:39 +0200, Helmut Schaa wrote:
> Am Samstag 10 April 2010 schrieb Antonio Quartulli:
> > # ip link set up dev wlan0
> > RTNETLINK answers: Device or resource busy
> > 
> > and this is the output on /var/log/messages:
> > 
> > Apr 10 13:26:45 eagle3 kernel: [12255.104075] phy1 ->
> > rt2800pci_load_firmware: Error - PBF system register not ready.
> > Apr 10 13:26:45 eagle3 kernel: [12255.104635] phy1 ->
> > rt2x00pci_regbusy_read: Error - Indirect register access failed:
> > offset=0x00007010, value=0xbdca191a
> 
> I justed checked the ralink drivers fw download and in difference to rt2x00
> it uses much more retries when accessing the register in question. Would you
> like to try the following patch which increases the number of retries to read
> the BF_SYS_CTRL register?
> 
> Helmut
> 
> diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c
> index a2b37d3..3bb45b3 100644
> --- a/drivers/net/wireless/rt2x00/rt2800pci.c
> +++ b/drivers/net/wireless/rt2x00/rt2800pci.c
> @@ -276,14 +276,14 @@ static int rt2800pci_load_firmware(struct rt2x00_dev *rt2x00dev,
>  	/*
>  	 * Wait for device to stabilize.
>  	 */
> -	for (i = 0; i < REGISTER_BUSY_COUNT; i++) {
> +	for (i = 0; i < 1000; i++) {
>  		rt2800_register_read(rt2x00dev, PBF_SYS_CTRL, &reg);
>  		if (rt2x00_get_field32(reg, PBF_SYS_CTRL_READY))
>  			break;
>  		msleep(1);
>  	}
>  
> -	if (i == REGISTER_BUSY_COUNT) {
> +	if (i == 1000) {
>  		ERROR(rt2x00dev, "PBF system register not ready.\n");
>  		return -EBUSY;
>  	}

Nothing to do...
it took more time, as expected, but again the same error appeared.

Apr 10 16:31:34 eagle3 kernel: [23344.301853] phy3 ->
rt2x00lib_request_firmware: Info - Loading firmware file 'rt2860.bin'.
Apr 10 16:31:34 eagle3 kernel: [23344.301864] rt2800pci 0000:06:00.0:
firmware: requesting rt2860.bin
Apr 10 16:31:34 eagle3 kernel: [23344.305606] phy3 ->
rt2x00lib_request_firmware: Info - Firmware detected - version: 0.11.
Apr 10 16:31:36 eagle3 kernel: [23346.319102] phy3 ->
rt2800pci_load_firmware: Error - PBF system register not ready.
Apr 10 16:31:36 eagle3 kernel: [23346.319628] phy3 ->
rt2x00pci_regbusy_read: Error - Indirect register access failed:
offset=0x00007010, value=0xbdca191a


-- 
Antonio Quartulli

Ognuno di noi, da solo, non vale nulla 
Ernesto "Che" Guevara



More information about the users mailing list