projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f3f061
)
ath9k_hw: prevent reset control register zeroing on AR9003 reset
author
Senthil Balasubramanian
<
[email protected]
>
Thu, 15 Apr 2010 21:38:30 +0000
(17:38 -0400)
committer
John W. Linville
<
[email protected]
>
Fri, 16 Apr 2010 19:43:23 +0000
(15:43 -0400)
Also, no need for the udelay(2) on AR9003 hardware.
Signed-off-by: Senthil Balasubramanian <
[email protected]
>
Signed-off-by: Luis R. Rodriguez <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/ath/ath9k/hw.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath9k/hw.c
b/drivers/net/wireless/ath/ath9k/hw.c
index 034b6fdf01f3e43344ab62c421eb4d6538b169d9..601dbf79cc0d853c28e6b73910e26131a0161b84 100644
(file)
--- a/
drivers/net/wireless/ath/ath9k/hw.c
+++ b/
drivers/net/wireless/ath/ath9k/hw.c
@@
-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);