diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2010-06-21 18:38:47 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-23 15:14:00 -0400 |
commit | 9a658d2b5c222b62919ab47b11c907c731ac180a (patch) | |
tree | 80d12299df8955d526c1103f2e3a7f6d9882c1c2 /drivers/net/wireless/ath/ath9k/ar9003_hw.c | |
parent | 1047d5edd4838f27dc86f24676178f2249c446ea (diff) |
ath9k_hw: fix ASPM setting for AR9003
The AR_WA register should not be read when in sleep state so
add a variable we can stash its value into for when we need
to set it. Additionally the AR_WA_D3_TO_L1_DISABLE_REAL
(bit 16) needs to be removed.
Cc: Aeolus Yang <aeolus.yang@atheros.com>
Cc: Madhan Jaganathan <madhan.jaganathan@atheros.com>
signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ar9003_hw.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9003_hw.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_hw.c b/drivers/net/wireless/ath/ath9k/ar9003_hw.c index 82c3ab756cd..b4a9441a5ac 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_hw.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_hw.c | |||
@@ -295,6 +295,8 @@ static void ar9003_hw_configpcipowersave(struct ath_hw *ah, | |||
295 | /* Several PCIe massages to ensure proper behaviour */ | 295 | /* Several PCIe massages to ensure proper behaviour */ |
296 | if (ah->config.pcie_waen) | 296 | if (ah->config.pcie_waen) |
297 | REG_WRITE(ah, AR_WA, ah->config.pcie_waen); | 297 | REG_WRITE(ah, AR_WA, ah->config.pcie_waen); |
298 | else | ||
299 | REG_WRITE(ah, AR_WA, ah->WARegVal); | ||
298 | } | 300 | } |
299 | } | 301 | } |
300 | 302 | ||