aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/hw.c
diff options
context:
space:
mode:
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>2012-06-11 02:49:31 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-06-13 14:35:52 -0400
commit9dd9b0dc1de8031a31b3eaebc6a9c0ab60612026 (patch)
tree84ea6caa93de07d8881b77d657bcb82b72ee1083 /drivers/net/wireless/ath/ath9k/hw.c
parent8389fb3fd7c0bbe3289578f698917f594e0b6fc9 (diff)
ath9k_hw: Fix AR9462 power consumption on idle associated
The HW statemachine is sometimes found stuck in the state WL_LNA_CTRL_DISABLE when BT is in sleep, which will cause TX_HOLD always asserted and resmgr stuck in PENDING_TX state Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index 45e670087e1c..6d893335f42b 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -2111,6 +2111,9 @@ static bool ath9k_hw_set_power_awake(struct ath_hw *ah)
2111 AR_RTC_FORCE_WAKE_EN); 2111 AR_RTC_FORCE_WAKE_EN);
2112 udelay(50); 2112 udelay(50);
2113 2113
2114 if (ath9k_hw_mci_is_enabled(ah))
2115 ar9003_mci_set_power_awake(ah);
2116
2114 for (i = POWER_UP_TIME / 50; i > 0; i--) { 2117 for (i = POWER_UP_TIME / 50; i > 0; i--) {
2115 val = REG_READ(ah, AR_RTC_STATUS) & AR_RTC_STATUS_M; 2118 val = REG_READ(ah, AR_RTC_STATUS) & AR_RTC_STATUS_M;
2116 if (val == AR_RTC_STATUS_ON) 2119 if (val == AR_RTC_STATUS_ON)