]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Dec 2014 23:55:35 +0000 (15:55 -0800)
commitad0ef9e8b8432bc4af8cf87a68e92a6b5bca53ef
treed9c7db7bbb601f96bf56a89ba4c616867cca8921
parent05619290c1b31183112b412ea1c940be6151874f
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.

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/ath/ath9k/ar9003_phy.c
drivers/net/wireless/ath/ath9k/hw.c