From: Sujith Manoharan <sujith@msujith.org>
To: John Linville <linville@tuxdriver.com>
Cc: linux-wireless@vger.kernel.org, ath9k-devel@qca.qualcomm.com
Subject: [PATCH 1/6] ath9k: disable overriding AR9340 SLP32 registers
Date: Tue, 11 Nov 2014 12:37:19 +0530 [thread overview]
Message-ID: <1415689644-29693-2-git-send-email-sujith@msujith.org> (raw)
In-Reply-To: <1415689644-29693-1-git-send-email-sujith@msujith.org>
From: Miaoqing Pan <miaoqing@qca.qualcomm.com>
For AR9340, the correct values for SLP32 registers are present
in the initvals, so overriding them is not needed.
Signed-off-by: Miaoqing Pan <miaoqing@qca.qualcomm.com>
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
---
drivers/net/wireless/ath/ath9k/ar9003_phy.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_phy.c b/drivers/net/wireless/ath/ath9k/ar9003_phy.c
index 2df6d2e..5c9c9a7 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_phy.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.c
@@ -668,12 +668,16 @@ static void ar9003_hw_override_ini(struct ath_hw *ah)
if (AR_SREV_9340(ah) || AR_SREV_9531(ah) || AR_SREV_9550(ah)) {
if (ah->is_clk_25mhz) {
REG_WRITE(ah, AR_RTC_DERIVED_CLK, 0x17c << 1);
- REG_WRITE(ah, AR_SLP32_MODE, 0x0010f3d7);
- REG_WRITE(ah, AR_SLP32_INC, 0x0001e7ae);
+ if (!AR_SREV_9340(ah)) {
+ REG_WRITE(ah, AR_SLP32_MODE, 0x0010f3d7);
+ REG_WRITE(ah, AR_SLP32_INC, 0x0001e7ae);
+ }
} else {
REG_WRITE(ah, AR_RTC_DERIVED_CLK, 0x261 << 1);
- REG_WRITE(ah, AR_SLP32_MODE, 0x0010f400);
- REG_WRITE(ah, AR_SLP32_INC, 0x0001e800);
+ if (!AR_SREV_9340(ah)) {
+ REG_WRITE(ah, AR_SLP32_MODE, 0x0010f400);
+ REG_WRITE(ah, AR_SLP32_INC, 0x0001e800);
+ }
}
udelay(100);
}
--
2.1.3
next prev parent reply other threads:[~2014-11-11 7:05 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-11 7:07 [PATCH 0/6] ath9k patches Sujith Manoharan
2014-11-11 7:07 ` Sujith Manoharan [this message]
2014-11-12 11:26 ` [PATCH 1/6] ath9k: disable overriding AR9340 SLP32 registers Felix Fietkau
2014-11-13 0:05 ` Sujith Manoharan
2014-11-14 6:02 ` Sujith Manoharan
2014-11-11 7:07 ` [PATCH 2/6] ath9k: Update QCA953x initvals Sujith Manoharan
2014-11-11 7:07 ` [PATCH 3/6] ath9k: Use new " Sujith Manoharan
2014-11-11 7:07 ` [PATCH 4/6] ath9k: Fix high tx power in multi-chain mode Sujith Manoharan
2014-11-11 14:23 ` Felix Fietkau
2014-11-11 23:38 ` Sujith Manoharan
2014-11-12 1:54 ` Pan, Miaoqing
2014-11-12 3:34 ` Sujith Manoharan
2014-11-12 8:48 ` Felix Fietkau
2014-11-13 0:00 ` Sujith Manoharan
2014-11-11 7:07 ` [PATCH 5/6] ath9k: Fix LED configuration Sujith Manoharan
2014-11-11 7:07 ` [PATCH 6/6] ath9k: Enable TSF2 for generic HW timers Sujith Manoharan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1415689644-29693-2-git-send-email-sujith@msujith.org \
--to=sujith@msujith.org \
--cc=ath9k-devel@qca.qualcomm.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).