[kernel] use 2.4.37.5
[openwrt.git] / package / mac80211 / patches / 404-ath9k-wake-up-the-chip-for-TSF-reset.patch
1 From d2fa21debb4ea8c022b0fbed165eea821d19da9e Mon Sep 17 00:00:00 2001
2 From: Gabor Juhos <juhosg@openwrt.org>
3 Date: Sat, 20 Jun 2009 23:57:22 +0200
4 Subject: [PATCH] ath9k: wake up the chip for TSF reset
5
6 If we are in NETWORK SLEEP state, AR_SLP32_TSF_WRITE_STATUS limit
7 always exceeds in 'ath9k_hw_reset_tsf', because reading of the
8 AR_SLP3 register always return with the magic 0xdeadbeef value.
9
10 Changes-licensed-under: ISC
11 Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
12 ---
13 drivers/net/wireless/ath/ath9k/hw.c | 2 ++
14 1 files changed, 2 insertions(+), 0 deletions(-)
15
16 --- a/drivers/net/wireless/ath/ath9k/hw.c
17 +++ b/drivers/net/wireless/ath/ath9k/hw.c
18 @@ -3803,6 +3803,7 @@ void ath9k_hw_reset_tsf(struct ath_hw *a
19 {
20 int count;
21
22 + ath9k_ps_wakeup(ah->ah_sc);
23 count = 0;
24 while (REG_READ(ah, AR_SLP32_MODE) & AR_SLP32_TSF_WRITE_STATUS) {
25 count++;
26 @@ -3814,6 +3815,7 @@ void ath9k_hw_reset_tsf(struct ath_hw *a
27 udelay(10);
28 }
29 REG_WRITE(ah, AR_RESET_TSF, AR_RESET_TSF_ONCE);
30 + ath9k_ps_restore(ah->ah_sc);
31 }
32
33 bool ath9k_hw_set_tsfadjust(struct ath_hw *ah, u32 setting)
This page took 0.046673 seconds and 5 git commands to generate.