summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/init.c
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2015-03-09 14:20:07 +0530
committerKalle Valo <kvalo@codeaurora.org>2015-03-13 15:19:30 +0200
commitafa7e6dbd91d3d9e18d224116353087082479dc5 (patch)
treefe80ccc90c720d770ecf790fe1ac790508c9a15a /drivers/net/wireless/ath/ath9k/init.c
parente519f78f1191007604c056dfcb372d4fe3a4b05b (diff)
downloadlinux-afa7e6dbd91d3d9e18d224116353087082479dc5.tar.gz
linux-afa7e6dbd91d3d9e18d224116353087082479dc5.tar.bz2
linux-afa7e6dbd91d3d9e18d224116353087082479dc5.zip
ath9k: Fix PLL powersave for AR9485
Use the value in ah->config.pll_pwrsave to determine which array needs to be loaded. Also, initialize pll_pwrsave to 1 by default. Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/init.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/init.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c
index 6c6e88495394..ca66fab78fba 100644
--- a/drivers/net/wireless/ath/ath9k/init.c
+++ b/drivers/net/wireless/ath/ath9k/init.c
@@ -437,8 +437,14 @@ static void ath9k_init_pcoem_platform(struct ath_softc *sc)
ath_info(common, "Enable WAR for ASPM D3/L1\n");
}
+ /*
+ * The default value of pll_pwrsave is 1.
+ * For certain AR9485 cards, it is set to 0.
+ */
+ ah->config.pll_pwrsave = 1;
+
if (sc->driver_data & ATH9K_PCI_NO_PLL_PWRSAVE) {
- ah->config.no_pll_pwrsave = true;
+ ah->config.pll_pwrsave = 0;
ath_info(common, "Disable PLL PowerSave\n");
}