aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ath/ath6kl/debug.c35
-rw-r--r--drivers/net/wireless/ath/ath6kl/debug.h2
-rw-r--r--drivers/net/wireless/ath/ath6kl/hif.c5
-rw-r--r--drivers/net/wireless/ath/ath6kl/wmi.c3
4 files changed, 18 insertions, 27 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/debug.c b/drivers/net/wireless/ath/ath6kl/debug.c
index fa7243b41442..bd2f1fae72a9 100644
--- a/drivers/net/wireless/ath/ath6kl/debug.c
+++ b/drivers/net/wireless/ath/ath6kl/debug.c
@@ -82,31 +82,31 @@ void ath6kl_dump_registers(struct ath6kl_device *dev,
82 struct ath6kl_irq_enable_reg *irq_enable_reg) 82 struct ath6kl_irq_enable_reg *irq_enable_reg)
83{ 83{
84 84
85 ath6kl_dbg(ATH6KL_DBG_ANY, ("<------- Register Table -------->\n")); 85 ath6kl_dbg(ATH6KL_DBG_IRQ, ("<------- Register Table -------->\n"));
86 86
87 if (irq_proc_reg != NULL) { 87 if (irq_proc_reg != NULL) {
88 ath6kl_dbg(ATH6KL_DBG_ANY, 88 ath6kl_dbg(ATH6KL_DBG_IRQ,
89 "Host Int status: 0x%x\n", 89 "Host Int status: 0x%x\n",
90 irq_proc_reg->host_int_status); 90 irq_proc_reg->host_int_status);
91 ath6kl_dbg(ATH6KL_DBG_ANY, 91 ath6kl_dbg(ATH6KL_DBG_IRQ,
92 "CPU Int status: 0x%x\n", 92 "CPU Int status: 0x%x\n",
93 irq_proc_reg->cpu_int_status); 93 irq_proc_reg->cpu_int_status);
94 ath6kl_dbg(ATH6KL_DBG_ANY, 94 ath6kl_dbg(ATH6KL_DBG_IRQ,
95 "Error Int status: 0x%x\n", 95 "Error Int status: 0x%x\n",
96 irq_proc_reg->error_int_status); 96 irq_proc_reg->error_int_status);
97 ath6kl_dbg(ATH6KL_DBG_ANY, 97 ath6kl_dbg(ATH6KL_DBG_IRQ,
98 "Counter Int status: 0x%x\n", 98 "Counter Int status: 0x%x\n",
99 irq_proc_reg->counter_int_status); 99 irq_proc_reg->counter_int_status);
100 ath6kl_dbg(ATH6KL_DBG_ANY, 100 ath6kl_dbg(ATH6KL_DBG_IRQ,
101 "Mbox Frame: 0x%x\n", 101 "Mbox Frame: 0x%x\n",
102 irq_proc_reg->mbox_frame); 102 irq_proc_reg->mbox_frame);
103 ath6kl_dbg(ATH6KL_DBG_ANY, 103 ath6kl_dbg(ATH6KL_DBG_IRQ,
104 "Rx Lookahead Valid: 0x%x\n", 104 "Rx Lookahead Valid: 0x%x\n",
105 irq_proc_reg->rx_lkahd_valid); 105 irq_proc_reg->rx_lkahd_valid);
106 ath6kl_dbg(ATH6KL_DBG_ANY, 106 ath6kl_dbg(ATH6KL_DBG_IRQ,
107 "Rx Lookahead 0: 0x%x\n", 107 "Rx Lookahead 0: 0x%x\n",
108 irq_proc_reg->rx_lkahd[0]); 108 irq_proc_reg->rx_lkahd[0]);
109 ath6kl_dbg(ATH6KL_DBG_ANY, 109 ath6kl_dbg(ATH6KL_DBG_IRQ,
110 "Rx Lookahead 1: 0x%x\n", 110 "Rx Lookahead 1: 0x%x\n",
111 irq_proc_reg->rx_lkahd[1]); 111 irq_proc_reg->rx_lkahd[1]);
112 112
@@ -115,16 +115,16 @@ void ath6kl_dump_registers(struct ath6kl_device *dev,
115 * If the target supports GMBOX hardware, dump some 115 * If the target supports GMBOX hardware, dump some
116 * additional state. 116 * additional state.
117 */ 117 */
118 ath6kl_dbg(ATH6KL_DBG_ANY, 118 ath6kl_dbg(ATH6KL_DBG_IRQ,
119 "GMBOX Host Int status 2: 0x%x\n", 119 "GMBOX Host Int status 2: 0x%x\n",
120 irq_proc_reg->host_int_status2); 120 irq_proc_reg->host_int_status2);
121 ath6kl_dbg(ATH6KL_DBG_ANY, 121 ath6kl_dbg(ATH6KL_DBG_IRQ,
122 "GMBOX RX Avail: 0x%x\n", 122 "GMBOX RX Avail: 0x%x\n",
123 irq_proc_reg->gmbox_rx_avail); 123 irq_proc_reg->gmbox_rx_avail);
124 ath6kl_dbg(ATH6KL_DBG_ANY, 124 ath6kl_dbg(ATH6KL_DBG_IRQ,
125 "GMBOX lookahead alias 0: 0x%x\n", 125 "GMBOX lookahead alias 0: 0x%x\n",
126 irq_proc_reg->rx_gmbox_lkahd_alias[0]); 126 irq_proc_reg->rx_gmbox_lkahd_alias[0]);
127 ath6kl_dbg(ATH6KL_DBG_ANY, 127 ath6kl_dbg(ATH6KL_DBG_IRQ,
128 "GMBOX lookahead alias 1: 0x%x\n", 128 "GMBOX lookahead alias 1: 0x%x\n",
129 irq_proc_reg->rx_gmbox_lkahd_alias[1]); 129 irq_proc_reg->rx_gmbox_lkahd_alias[1]);
130 } 130 }
@@ -132,13 +132,13 @@ void ath6kl_dump_registers(struct ath6kl_device *dev,
132 } 132 }
133 133
134 if (irq_enable_reg != NULL) { 134 if (irq_enable_reg != NULL) {
135 ath6kl_dbg(ATH6KL_DBG_ANY, 135 ath6kl_dbg(ATH6KL_DBG_IRQ,
136 "Int status Enable: 0x%x\n", 136 "Int status Enable: 0x%x\n",
137 irq_enable_reg->int_status_en); 137 irq_enable_reg->int_status_en);
138 ath6kl_dbg(ATH6KL_DBG_ANY, "Counter Int status Enable: 0x%x\n", 138 ath6kl_dbg(ATH6KL_DBG_IRQ, "Counter Int status Enable: 0x%x\n",
139 irq_enable_reg->cntr_int_status_en); 139 irq_enable_reg->cntr_int_status_en);
140 } 140 }
141 ath6kl_dbg(ATH6KL_DBG_ANY, "<------------------------------->\n"); 141 ath6kl_dbg(ATH6KL_DBG_IRQ, "<------------------------------->\n");
142} 142}
143 143
144static void dump_cred_dist(struct htc_endpoint_credit_dist *ep_dist) 144static void dump_cred_dist(struct htc_endpoint_credit_dist *ep_dist)
@@ -175,9 +175,6 @@ void dump_cred_dist_stats(struct htc_target *target)
175{ 175{
176 struct htc_endpoint_credit_dist *ep_list; 176 struct htc_endpoint_credit_dist *ep_list;
177 177
178 if (!AR_DBG_LVL_CHECK(ATH6KL_DBG_CREDIT))
179 return;
180
181 list_for_each_entry(ep_list, &target->cred_dist_list, list) 178 list_for_each_entry(ep_list, &target->cred_dist_list, list)
182 dump_cred_dist(ep_list); 179 dump_cred_dist(ep_list);
183 180
diff --git a/drivers/net/wireless/ath/ath6kl/debug.h b/drivers/net/wireless/ath/ath6kl/debug.h
index 9853c9c125c1..9dc39754a35f 100644
--- a/drivers/net/wireless/ath/ath6kl/debug.h
+++ b/drivers/net/wireless/ath/ath6kl/debug.h
@@ -55,8 +55,6 @@ int ath6kl_printk(const char *level, const char *fmt, ...);
55#define ath6kl_warn(fmt, ...) \ 55#define ath6kl_warn(fmt, ...) \
56 ath6kl_printk(KERN_WARNING, fmt, ##__VA_ARGS__) 56 ath6kl_printk(KERN_WARNING, fmt, ##__VA_ARGS__)
57 57
58#define AR_DBG_LVL_CHECK(mask) (debug_mask & mask)
59
60enum ath6kl_war { 58enum ath6kl_war {
61 ATH6KL_WAR_INVALID_RATE, 59 ATH6KL_WAR_INVALID_RATE,
62}; 60};
diff --git a/drivers/net/wireless/ath/ath6kl/hif.c b/drivers/net/wireless/ath/ath6kl/hif.c
index e57da35e59fa..711886860b5d 100644
--- a/drivers/net/wireless/ath/ath6kl/hif.c
+++ b/drivers/net/wireless/ath/ath6kl/hif.c
@@ -429,9 +429,8 @@ static int proc_pending_irqs(struct ath6kl_device *dev, bool *done)
429 if (status) 429 if (status)
430 goto out; 430 goto out;
431 431
432 if (AR_DBG_LVL_CHECK(ATH6KL_DBG_IRQ)) 432 ath6kl_dump_registers(dev, &dev->irq_proc_reg,
433 ath6kl_dump_registers(dev, &dev->irq_proc_reg, 433 &dev->irq_en_reg);
434 &dev->irq_en_reg);
435 434
436 /* Update only those registers that are enabled */ 435 /* Update only those registers that are enabled */
437 host_int_status = dev->irq_proc_reg.host_int_status & 436 host_int_status = dev->irq_proc_reg.host_int_status &
diff --git a/drivers/net/wireless/ath/ath6kl/wmi.c b/drivers/net/wireless/ath/ath6kl/wmi.c
index c2420f886ed8..5d678bf372d3 100644
--- a/drivers/net/wireless/ath/ath6kl/wmi.c
+++ b/drivers/net/wireless/ath/ath6kl/wmi.c
@@ -426,9 +426,6 @@ static int ath6kl_wmi_tx_complete_event_rx(u8 *datap, int len)
426 ath6kl_dbg(ATH6KL_DBG_WMI, "comp: %d %d %d\n", 426 ath6kl_dbg(ATH6KL_DBG_WMI, "comp: %d %d %d\n",
427 evt->num_msg, evt->msg_len, evt->msg_type); 427 evt->num_msg, evt->msg_len, evt->msg_type);
428 428
429 if (!AR_DBG_LVL_CHECK(ATH6KL_DBG_WMI))
430 return 0;
431
432 for (index = 0; index < evt->num_msg; index++) { 429 for (index = 0; index < evt->num_msg; index++) {
433 size = sizeof(struct wmi_tx_complete_event) + 430 size = sizeof(struct wmi_tx_complete_event) +
434 (index * sizeof(struct tx_complete_msg_v1)); 431 (index * sizeof(struct tx_complete_msg_v1));