diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2015-02-05 10:22:44 +0530 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-02-26 14:58:46 +0200 |
commit | aa96af82b873aeff93b11fcbb8577e0001dad221 (patch) | |
tree | 7fa8fb0d0ff925d4e2821575fe12fee5726f6452 /drivers/net | |
parent | 3277b20270ee1130a22ced81e7efb0820a160193 (diff) | |
download | linux-stable-aa96af82b873aeff93b11fcbb8577e0001dad221.tar.gz linux-stable-aa96af82b873aeff93b11fcbb8577e0001dad221.tar.bz2 linux-stable-aa96af82b873aeff93b11fcbb8577e0001dad221.zip |
ath9k: Restart TSF2 timers on wakeup
When coming out of WoW sleep, check and restart
timers based on TSF2.
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9003_wow.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_wow.c b/drivers/net/wireless/ath/ath9k/ar9003_wow.c index efeb9d770899..bea41df9fbd7 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_wow.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_wow.c @@ -252,6 +252,13 @@ u32 ath9k_hw_wow_wakeup(struct ath_hw *ah) if (ah->is_pciexpress) ath9k_hw_configpcipowersave(ah, false); + if (AR_SREV_9462(ah) || AR_SREV_9565(ah) || AR_SREV_9485(ah)) { + u32 dc = REG_READ(ah, AR_DIRECT_CONNECT); + + if (!(dc & AR_DC_TSF2_ENABLE)) + ath9k_hw_gen_timer_start_tsf2(ah); + } + ah->wow.wow_event_mask = 0; ah->wow.wow_event_mask2 = 0; |