~ubuntu-branches/ubuntu/quantal/linux-backports-modules-3.5.0/quantal-updates

« back to all changes in this revision

Viewing changes to updates/cw-3.6/linux-next-pending/0005-ath9k_hw-Disable-MCI-stat-counter-by-default-for-AR9.patch

  • Committer: Package Import Robot
  • Author(s): Leann Ogasawara
  • Date: 2012-10-10 22:28:55 UTC
  • Revision ID: package-import@ubuntu.com-20121010222855-qepocc61xktv6gs9
Tags: 3.5.0-17.1
* Open Quantal LBM
* Add compat-wireless 3.6
  -LP: #1066123

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
5
 
 
6
Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
 
7
---
 
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(-)
 
11
 
 
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,
 
15
        mci->ready = true;
 
16
        ar9003_mci_prep_interface(ah);
 
17
 
 
18
+       if (AR_SREV_9565(ah))
 
19
+               REG_RMW_FIELD(ah, AR_MCI_DBG_CNT_CTRL,
 
20
+                             AR_MCI_DBG_CNT_CTRL_ENABLE, 0);
 
21
        if (en_int)
 
22
                ar9003_mci_enable_interrupt(ah);
 
23
 
 
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
 
33
 
 
34
 #endif