linux-stable-rt/drivers/net/wireless/b43legacy
Stefano Brivio e78c9d2857 b43legacy: fix MAC control and microcode init
This zeros out all microcode related memory before loading
the microcode.

This also fixes initialization of the MAC control register.
The _only_ place where we overwrite the contents of the MAC control
register is at the beginning of b43_chip_init().
All other places must do read() -> mask/set -> write() to not
overwrite existing bits.

This also adds a longer delay for waiting for the microcode
to initialize itself. It seems that the current timeout is sufficient
on all available devices, but there's no real reason why we shouldn't
wait for up to one second. Slow embedded devices might exist.
Better safe than sorry.

While at it, fix naming of MACCTL values.

This patch by Michael Buesch has been ported to b43legacy.

Signed-off-by: Stefano Brivio <stefano.brivio@polimi.it>
Acked-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-01-31 19:26:37 -08:00
..
Kconfig
Makefile
b43legacy.h b43legacy: fix MAC control and microcode init 2008-01-31 19:26:37 -08:00
debugfs.c
debugfs.h
dma.c
dma.h
ilt.c
ilt.h
leds.c
leds.h
main.c b43legacy: fix MAC control and microcode init 2008-01-31 19:26:37 -08:00
main.h
phy.c b43legacy: fix MAC control and microcode init 2008-01-31 19:26:37 -08:00
phy.h
pio.c b43legacy: fix MAC control and microcode init 2008-01-31 19:26:37 -08:00
pio.h
radio.c b43legacy: fix MAC control and microcode init 2008-01-31 19:26:37 -08:00
radio.h
rfkill.c
rfkill.h
sysfs.c
sysfs.h
xmit.c
xmit.h