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>
This commit is contained in:
Sujith 2009-09-18 15:04:27 +05:30 committed by John W. Linville
parent 193cd4585e
commit 4921be8058
1 changed files with 3 additions and 2 deletions

View File

@ -2851,8 +2851,9 @@ 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);
REG_CLR_BIT(ah, (AR_RTC_RESET), if(!AR_SREV_5416(ah))
AR_RTC_RESET_EN); REG_CLR_BIT(ah, (AR_RTC_RESET),
AR_RTC_RESET_EN);
} }
} }