ath5k: Check EEPROM before tweaking SERDES
authorNick Kossifidis <mick@madwifi-project.org>
Mon, 10 Aug 2009 00:26:55 +0000 (03:26 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 14 Aug 2009 13:13:55 +0000 (09:13 -0400)
commitc38e7a9348f725be0ea2493454db9e6d44fb7e0c
treee535611368ee9a99ceefea6f9089291224c46d9e
parentd6756d0dc220c3d12e2c4c06ca97d1dbcb5edf4e
ath5k: Check EEPROM before tweaking SERDES

* Read PCI-E infos offset from EEPROM and if it points to
   serdes section (0x40), enable serdes programming (further tweaking
   of serdes values during attach). This follows Legacy and Sam's
   HAL sources.

Signed-off-by: Nick Kossifidis <mickflemm@gmail.com>
Acked-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/attach.c
drivers/net/wireless/ath/ath5k/eeprom.c
drivers/net/wireless/ath/ath5k/eeprom.h