aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2010-06-21 18:38:48 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-06-23 15:14:01 -0400
commit653fe371226fcbcc41b4662d35d2207648a6075d (patch)
tree5b242d7ad1195d5d9c2e625ef722809e873adcc4
parent9a658d2b5c222b62919ab47b11c907c731ac180a (diff)
ath9k_hw: move LowPower array writes to ar9003_hw_configpcipowersave()
The LowPower array writes disables the PLL when ASPM is enabled. The host driver makes quite a few calls to ath9k_hw_configpcipowersave() and these same calls also need to ensure the PLL is off when they issue it. Cc: Aeolus Yang <aeolus.yang@atheros.com> Cc: Madhan Jaganathan <madhan.jaganathan@atheros.com> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/ath9k/ar9003_hw.c14
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.c14
2 files changed, 14 insertions, 14 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_hw.c b/drivers/net/wireless/ath/ath9k/ar9003_hw.c
index b4a9441a5ac7..efabab8d50c9 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_hw.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_hw.c
@@ -298,6 +298,20 @@ static void ar9003_hw_configpcipowersave(struct ath_hw *ah,
298 else 298 else
299 REG_WRITE(ah, AR_WA, ah->WARegVal); 299 REG_WRITE(ah, AR_WA, ah->WARegVal);
300 } 300 }
301
302 /*
303 * Configire PCIE after Ini init. SERDES values now come from ini file
304 * This enables PCIe low power mode.
305 */
306 if (AR_SREV_9300_20_OR_LATER(ah)) {
307 unsigned int i;
308
309 for (i = 0; i < ah->iniPcieSerdesLowPower.ia_rows; i++) {
310 REG_WRITE(ah,
311 INI_RA(&ah->iniPcieSerdesLowPower, i, 0),
312 INI_RA(&ah->iniPcieSerdesLowPower, i, 1));
313 }
314 }
301} 315}
302 316
303/* Sets up the AR9003 hardware familiy callbacks */ 317/* Sets up the AR9003 hardware familiy callbacks */
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index fb09042e2889..3ee7d4e0499f 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -571,20 +571,6 @@ static int __ath9k_hw_init(struct ath_hw *ah)
571 ath9k_hw_init_mode_regs(ah); 571 ath9k_hw_init_mode_regs(ah);
572 572
573 /* 573 /*
574 * Configire PCIE after Ini init. SERDES values now come from ini file
575 * This enables PCIe low power mode.
576 */
577 if (AR_SREV_9300_20_OR_LATER(ah)) {
578 unsigned int i;
579
580 for (i = 0; i < ah->iniPcieSerdesLowPower.ia_rows; i++) {
581 REG_WRITE(ah,
582 INI_RA(&ah->iniPcieSerdesLowPower, i, 0),
583 INI_RA(&ah->iniPcieSerdesLowPower, i, 1));
584 }
585 }
586
587 /*
588 * Read back AR_WA into a permanent copy and set bits 14 and 17. 574 * Read back AR_WA into a permanent copy and set bits 14 and 17.
589 * We need to do this to avoid RMW of this register. We cannot 575 * We need to do this to avoid RMW of this register. We cannot
590 * read the reg when chip is asleep. 576 * read the reg when chip is asleep.