diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2009-09-18 05:34:27 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-07 16:39:39 -0400 |
commit | 4921be8058f1c8854e501305b96196856fe7f830 (patch) | |
tree | f5d50534b501581244aceb92cf4d3462cde29f63 /drivers/net/wireless/ath/ath9k/hw.c | |
parent | 193cd4585e6c5650875e98ccfef2fa93616fef30 (diff) |
ath9k: Fix RTC reset for AR5416
For AR5416 chipsets, clearing RTC_RESET_EN when setting
the chip to SLEEP mode results in high power consumption.
This patch fixes this issue by not clearing it for AR5416.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index 1e0f5bd702c6..0a3de3f7b0a6 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -2851,8 +2851,9 @@ static void ath9k_set_power_sleep(struct ath_hw *ah, int setChip) | |||
2851 | if (!AR_SREV_9100(ah)) | 2851 | if (!AR_SREV_9100(ah)) |
2852 | REG_WRITE(ah, AR_RC, AR_RC_AHB | AR_RC_HOSTIF); | 2852 | REG_WRITE(ah, AR_RC, AR_RC_AHB | AR_RC_HOSTIF); |
2853 | 2853 | ||
2854 | REG_CLR_BIT(ah, (AR_RTC_RESET), | 2854 | if(!AR_SREV_5416(ah)) |
2855 | AR_RTC_RESET_EN); | 2855 | REG_CLR_BIT(ah, (AR_RTC_RESET), |
2856 | AR_RTC_RESET_EN); | ||
2856 | } | 2857 | } |
2857 | } | 2858 | } |
2858 | 2859 | ||