Commit 4921be80 authored by Sujith's avatar Sujith Committed by John W. Linville
Browse files

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: default avatarSujith <Sujith.Manoharan@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 193cd458
...@@ -2851,6 +2851,7 @@ static void ath9k_set_power_sleep(struct ath_hw *ah, int setChip) ...@@ -2851,6 +2851,7 @@ static void ath9k_set_power_sleep(struct ath_hw *ah, int setChip)
if (!AR_SREV_9100(ah)) if (!AR_SREV_9100(ah))
REG_WRITE(ah, AR_RC, AR_RC_AHB | AR_RC_HOSTIF); REG_WRITE(ah, AR_RC, AR_RC_AHB | AR_RC_HOSTIF);
if(!AR_SREV_5416(ah))
REG_CLR_BIT(ah, (AR_RTC_RESET), REG_CLR_BIT(ah, (AR_RTC_RESET),
AR_RTC_RESET_EN); AR_RTC_RESET_EN);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment