]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ath9k: Fix RTC_DERIVED_CLK usage
authorMiaoqing Pan <miaoqing@qca.qualcomm.com>
Thu, 6 Nov 2014 05:22:23 +0000 (10:52 +0530)
committerJiri Slaby <jslaby@suse.cz>
Sat, 6 Dec 2014 14:17:45 +0000 (15:17 +0100)
commit1043c385dd176fc1061781f9a9896cff540f6ea7
tree6c7f11d15292b47439de50fa11e4e6af10d90571
parent10ef1755917a46812dec017112f88ffafc309f94
ath9k: Fix RTC_DERIVED_CLK usage

commit 4e6ce4dc7ce71d0886908d55129d5d6482a27ff9 upstream.

Based on the reference clock, which could be 25MHz or 40MHz,
AR_RTC_DERIVED_CLK is programmed differently for AR9340 and AR9550.
But, when a chip reset is done, processing the initvals
sets the register back to the default value.

Fix this by moving the code in ath9k_hw_init_pll() to
ar9003_hw_override_ini(). Also, do this override for AR9531.

js: remove AR_SREV_9531 test as 9531 support is not in 3.12 yet

Signed-off-by: Miaoqing Pan <miaoqing@qca.qualcomm.com>
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/net/wireless/ath/ath9k/ar9003_phy.c
drivers/net/wireless/ath/ath9k/hw.c