OSDN Git Service

ath9k_hw: Optimize ath9k_hw_ar9287_set_board_values
authorSujith <Sujith.Manoharan@atheros.com>
Tue, 1 Jun 2010 09:44:06 +0000 (15:14 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 3 Jun 2010 18:10:46 +0000 (14:10 -0400)
commit79d7f4bcf8519abbea46d909ff01a1358b431e1d
tree00e240de8a7c74374f273ec12bd00e0b8f499d95
parent16c94ac6cf9727b686e16b8d5dedfd282ab3a9ee
ath9k_hw: Optimize ath9k_hw_ar9287_set_board_values

Rather than doing a series of RMWs, calculate the
value to be written to the register in question and
do a single REGWRITE. This improves bringup time.

This depends on the analog_shiftreg configuration option,
which is currently buggy. For AP mode, a delay of 100us
has to be the default. For station mode, this knob has to
be enabled on a per-case basis, though it is a little
unclear on when to enable a delay. This can be fixed later though.

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/eeprom.c
drivers/net/wireless/ath/ath9k/eeprom.h
drivers/net/wireless/ath/ath9k/eeprom_9287.c