linux/drivers/net/wireless/zd1211rw
Florian Fainelli 02f1434d4e zd1211rw: wait between setting hash table and powering radio on
I am running Debian testing kernel 3.1.0-1-amd64, using a 079b:0062 Sagem
XG-76NA 802.11bg stick.

Upon zd1211rw interface
bringup (ifconfig wlan0 up) I get the following timeout:

[  950.330573] zd1211rw 1-3:1.0: phy2
[  955.108510] zd1211rw 1-3:1.0: firmware version 4725
[  955.148532] zd1211rw 1-3:1.0: zd1211b chip 079b:0062 v4810 high 00-19-70
AL2230_RF pa0 g--NS
[snip]
[  955.204072] zd1211rw 1-3:1.0: error ioread32(CR_REG1): -110

A second ifconfig wlan0 up brings the interface up without problems.

After a bit more debugging, the call trace is the following:

[10241.028130] zd1211rw 1-3:1.0: zd_chip_lock_phy_regs: error
ioread32(CR_REG1): -110
[10241.028140] zd1211rw 1-3:1.0: zd_switch_radio_on: failed to lock PHY regs
[10241.028148] zd1211rw 1-3:1.0: zd_op_start: failed to set radio on

Adding a 10 milliseconds delay between the call to set_mc_hash() and
zd_chip_switch_radio_on() allows successful interface bringups in all
cases and matches what the vendor driver did.

Acked-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2012-02-29 14:11:32 -05:00
..
Kconfig
Makefile net: change to new flag variable 2011-03-17 14:05:35 +01:00
zd_chip.c zd1211rw: rename CR* macros to ZD_CR* 2011-04-07 15:34:13 -04:00
zd_chip.h zd1211rw: include mac80211.h from zd_chip.h 2011-06-20 15:16:32 -04:00
zd_def.h zd1211rw: fix invalid signal values from device 2011-06-22 16:09:45 -04:00
zd_mac.c zd1211rw: wait between setting hash table and powering radio on 2012-02-29 14:11:32 -05:00
zd_mac.h zd1211rw: only update HW beacon if new beacon differs from currect 2011-06-22 16:09:46 -04:00
zd_rf.c
zd_rf.h zd1211rw: rename CR* macros to ZD_CR* 2011-04-07 15:34:13 -04:00
zd_rf_al2230.c zd1211rw: rename CR* macros to ZD_CR* 2011-04-07 15:34:13 -04:00
zd_rf_al7230b.c zd1211rw: rename CR* macros to ZD_CR* 2011-04-07 15:34:13 -04:00
zd_rf_rf2959.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2011-04-12 16:18:44 -04:00
zd_rf_uw2453.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2011-04-12 16:18:44 -04:00
zd_usb.c drivers/net: Add module.h to drivers who were implicitly using it 2011-10-31 19:31:07 -04:00
zd_usb.h zd1211rw: handle lost read-reg interrupts 2011-06-22 16:09:46 -04:00