Linux wireless drivers development
 help / color / mirror / Atom feed
From: Bala Shanmugam <bkamatch@qca.qualcomm.com>
To: <linville@tuxdriver.com>
Cc: <linux-wireless@vger.kernel.org>
Subject: [PATCH 1/2] ath9k: Set appropriate bit for AR9565 in btc control register
Date: Mon, 15 Oct 2012 11:58:33 +0530	[thread overview]
Message-ID: <1350282513-3869-1-git-send-email-bkamatch@qca.qualcomm.com> (raw)

Signed-off-by: Bala Shanmugam <bkamatch@qca.qualcomm.com>
---
 drivers/net/wireless/ath/ath9k/ar9003_mci.c |   30 ++++++++++++++++++--------
 1 files changed, 21 insertions(+), 9 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/ar9003_mci.c b/drivers/net/wireless/ath/ath9k/ar9003_mci.c
index 44c202c..841f2b9 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_mci.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_mci.c
@@ -843,15 +843,27 @@ int ar9003_mci_reset(struct ath_hw *ah, bool en_int, bool is_2g,
 	* MCI mode will be enabled later, right before reset the MCI TX and RX.
 	*/
 
-	regval = SM(1, AR_BTCOEX_CTRL_AR9462_MODE) |
-		 SM(1, AR_BTCOEX_CTRL_WBTIMER_EN) |
-		 SM(1, AR_BTCOEX_CTRL_PA_SHARED) |
-		 SM(1, AR_BTCOEX_CTRL_LNA_SHARED) |
-		 SM(2, AR_BTCOEX_CTRL_NUM_ANTENNAS) |
-		 SM(3, AR_BTCOEX_CTRL_RX_CHAIN_MASK) |
-		 SM(0, AR_BTCOEX_CTRL_1_CHAIN_ACK) |
-		 SM(0, AR_BTCOEX_CTRL_1_CHAIN_BCN) |
-		 SM(0, AR_BTCOEX_CTRL_ONE_STEP_LOOK_AHEAD_EN);
+	if (AR_SREV_9565(ah)) {
+		regval = SM(1, AR_BTCOEX_CTRL_AR9462_MODE) |
+			 SM(1, AR_BTCOEX_CTRL_WBTIMER_EN) |
+			 SM(0, AR_BTCOEX_CTRL_PA_SHARED) |
+			 SM(0, AR_BTCOEX_CTRL_LNA_SHARED) |
+			 SM(2, AR_BTCOEX_CTRL_NUM_ANTENNAS) |
+			 SM(1, AR_BTCOEX_CTRL_RX_CHAIN_MASK) |
+			 SM(0, AR_BTCOEX_CTRL_1_CHAIN_ACK) |
+			 SM(0, AR_BTCOEX_CTRL_1_CHAIN_BCN) |
+			 SM(0, AR_BTCOEX_CTRL_ONE_STEP_LOOK_AHEAD_EN);
+	} else {
+		regval = SM(1, AR_BTCOEX_CTRL_AR9462_MODE) |
+			 SM(1, AR_BTCOEX_CTRL_WBTIMER_EN) |
+			 SM(1, AR_BTCOEX_CTRL_PA_SHARED) |
+			 SM(1, AR_BTCOEX_CTRL_LNA_SHARED) |
+			 SM(2, AR_BTCOEX_CTRL_NUM_ANTENNAS) |
+			 SM(3, AR_BTCOEX_CTRL_RX_CHAIN_MASK) |
+			 SM(0, AR_BTCOEX_CTRL_1_CHAIN_ACK) |
+			 SM(0, AR_BTCOEX_CTRL_1_CHAIN_BCN) |
+			 SM(0, AR_BTCOEX_CTRL_ONE_STEP_LOOK_AHEAD_EN);
+	}
 
 	REG_WRITE(ah, AR_BTCOEX_CTRL, regval);
 
-- 
1.7.4.1


             reply	other threads:[~2012-10-15  6:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-15  6:28 Bala Shanmugam [this message]
2012-10-15  7:22 ` [PATCH 1/2] ath9k: Set appropriate bit for AR9565 in btc control register Rajkumar 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=1350282513-3869-1-git-send-email-bkamatch@qca.qualcomm.com \
    --to=bkamatch@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