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
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2851,6 +2851,7 @@ static void ath9k_set_power_sleep(struct ath_hw *ah, int setChip)
		if (!AR_SREV_9100(ah))
			REG_WRITE(ah, AR_RC, AR_RC_AHB | AR_RC_HOSTIF);

		if(!AR_SREV_5416(ah))
			REG_CLR_BIT(ah, (AR_RTC_RESET),
				    AR_RTC_RESET_EN);
	}