diff options
author | Rajkumar Manoharan <rmanohar@qca.qualcomm.com> | 2011-10-13 01:19:13 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-10-14 14:48:21 -0400 |
commit | eec353c5dab7f0e2b217d2793a3e75ea942e1cca (patch) | |
tree | f20d60999eb79d3879c44edf397fd5cec6f31619 /drivers | |
parent | 711825a06bb288e04f8236d77c4e12eba9a1c478 (diff) |
ath9k_hw: Fix ASPM L1 issue for AR9480
Because of not clearing Bit 14 of AR_WA, the ASPM L1 is not
enabled when entering into sleep mode. AR9480 does not need
bit 14 to be set.
Cc: stable@kernel.org
Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index fd7c2077dfd4..58794a4e40ad 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -541,6 +541,9 @@ static int __ath9k_hw_init(struct ath_hw *ah) | |||
541 | return -EIO; | 541 | return -EIO; |
542 | } | 542 | } |
543 | 543 | ||
544 | if (AR_SREV_9480(ah)) | ||
545 | ah->WARegVal &= ~AR_WA_D3_L1_DISABLE; | ||
546 | |||
544 | ath9k_hw_init_defaults(ah); | 547 | ath9k_hw_init_defaults(ah); |
545 | ath9k_hw_init_config(ah); | 548 | ath9k_hw_init_config(ah); |
546 | 549 | ||
@@ -1776,8 +1779,7 @@ static void ath9k_set_power_sleep(struct ath_hw *ah, int setChip) | |||
1776 | } | 1779 | } |
1777 | 1780 | ||
1778 | /* Clear Bit 14 of AR_WA after putting chip into Full Sleep mode. */ | 1781 | /* Clear Bit 14 of AR_WA after putting chip into Full Sleep mode. */ |
1779 | if (!AR_SREV_9480(ah)) | 1782 | REG_WRITE(ah, AR_WA, ah->WARegVal & ~AR_WA_D3_L1_DISABLE); |
1780 | REG_WRITE(ah, AR_WA, ah->WARegVal & ~AR_WA_D3_L1_DISABLE); | ||
1781 | } | 1783 | } |
1782 | 1784 | ||
1783 | /* | 1785 | /* |