1
From 7b608d7a012d967f08e8500c3e38b94d28daa4c6 Mon Sep 17 00:00:00 2001
2
From: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
3
Date: Mon, 15 Oct 2012 15:29:49 +0530
4
Subject: [PATCH 05/11] ath9k_hw: Disable MCI stat counter by default for AR9565
6
Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
8
drivers/net/wireless/ath/ath9k/ar9003_mci.c | 3 +++
9
drivers/net/wireless/ath/ath9k/reg.h | 3 +++
10
2 files changed, 6 insertions(+), 0 deletions(-)
12
--- a/drivers/net/wireless/ath/ath9k/ar9003_mci.c
13
+++ b/drivers/net/wireless/ath/ath9k/ar9003_mci.c
14
@@ -926,6 +926,9 @@ int ar9003_mci_reset(struct ath_hw *ah,
16
ar9003_mci_prep_interface(ah);
18
+ if (AR_SREV_9565(ah))
19
+ REG_RMW_FIELD(ah, AR_MCI_DBG_CNT_CTRL,
20
+ AR_MCI_DBG_CNT_CTRL_ENABLE, 0);
22
ar9003_mci_enable_interrupt(ah);
24
--- a/drivers/net/wireless/ath/ath9k/reg.h
25
+++ b/drivers/net/wireless/ath/ath9k/reg.h
26
@@ -2363,5 +2363,8 @@ enum {
27
#define AR_MCI_MISC 0x1a74
28
#define AR_MCI_MISC_HW_FIX_EN 0x00000001
29
#define AR_MCI_MISC_HW_FIX_EN_S 0
30
+#define AR_MCI_DBG_CNT_CTRL 0x1a78
31
+#define AR_MCI_DBG_CNT_CTRL_ENABLE 0x00000001
32
+#define AR_MCI_DBG_CNT_CTRL_ENABLE_S 0