Skip to content

Commit

Permalink
ath9k_hw: prevent reset control register zeroing on AR9003 reset
Browse files Browse the repository at this point in the history
Also, no need for the udelay(2) on AR9003 hardware.

Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Senthil Balasubramanian authored and John W. Linville committed Apr 16, 2010
1 parent 1f3f061 commit 84e2169
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/net/wireless/ath/ath9k/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1385,9 +1385,11 @@ static bool ath9k_hw_set_reset_power_on(struct ath_hw *ah)
REG_WRITE(ah, AR_RC, AR_RC_AHB);

REG_WRITE(ah, AR_RTC_RESET, 0);
udelay(2);

if (!AR_SREV_9100(ah))
if (!AR_SREV_9300_20_OR_LATER(ah))
udelay(2);

if (!AR_SREV_9100(ah) && !AR_SREV_9300_20_OR_LATER(ah))
REG_WRITE(ah, AR_RC, 0);

REG_WRITE(ah, AR_RTC_RESET, 1);
Expand Down

0 comments on commit 84e2169

Please sign in to comment.