ath5k: Fix reset sequence for AR5212 in general and RF5111 in particular
authorElias Oltmanns <eo@nebensachen.de>
Wed, 29 Oct 2008 13:25:42 +0000 (14:25 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 29 Oct 2008 21:54:35 +0000 (17:54 -0400)
commit7d19267b8d1e12c0baebf9be96e04cddffe63f67
tree3cbe98a37518a7fa6aa2444eaf25ef743e2951b0
parent5dc5340cfc00097e79d9d787567d311e898aaa84
ath5k: Fix reset sequence for AR5212 in general and RF5111 in particular

Take care to handle register 0xa228 exactly as in the HAL released by
Atheros. This change is required to make ath5k work again on my system
since commit 2203d6be (ath5k: Misc hw_reset updates), thus fixing a
regression in 2.6.27 and therefore hopefully eligible for inclusion into
a stable release.

v2: Only overwrite initial register values on later revisions of AR5212
    chips.
v3: Use standard macros to manipulate the register.

Signed-off-by: Elias Oltmanns <eo@nebensachen.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath5k/initvals.c
drivers/net/wireless/ath5k/reset.c