diff options
author | Bruno Randolf <br1@einfach.org> | 2010-05-18 21:31:16 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-02 16:13:24 -0400 |
commit | 230fc4f3b2fa72980787a5f86c850f02bb193187 (patch) | |
tree | 74e807adfb7f2455c65553dd22700a7222bf81de | |
parent | afe86286a166881d2ae7ce4469036735254d1263 (diff) |
ath5k: remove ATH_TRACE macro
Now that we have ftrace, it is not needed any more.
Signed-off-by: Bruno Randolf <br1@einfach.org>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath5k/attach.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/caps.c | 7 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/debug.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/debug.h | 8 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/desc.c | 7 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/dma.c | 13 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/eeprom.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/gpio.c | 7 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/pcu.c | 24 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/phy.c | 13 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/qcu.c | 9 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/reset.c | 7 |
12 files changed, 0 insertions, 99 deletions
diff --git a/drivers/net/wireless/ath/ath5k/attach.c b/drivers/net/wireless/ath/ath5k/attach.c index e0c244b02f05..ef2dc1dd3a5d 100644 --- a/drivers/net/wireless/ath/ath5k/attach.c +++ b/drivers/net/wireless/ath/ath5k/attach.c | |||
@@ -351,8 +351,6 @@ err_free: | |||
351 | */ | 351 | */ |
352 | void ath5k_hw_detach(struct ath5k_hw *ah) | 352 | void ath5k_hw_detach(struct ath5k_hw *ah) |
353 | { | 353 | { |
354 | ATH5K_TRACE(ah->ah_sc); | ||
355 | |||
356 | __set_bit(ATH_STAT_INVALID, ah->ah_sc->status); | 354 | __set_bit(ATH_STAT_INVALID, ah->ah_sc->status); |
357 | 355 | ||
358 | if (ah->ah_rf_banks != NULL) | 356 | if (ah->ah_rf_banks != NULL) |
diff --git a/drivers/net/wireless/ath/ath5k/caps.c b/drivers/net/wireless/ath/ath5k/caps.c index 74f007126f41..beae519aa735 100644 --- a/drivers/net/wireless/ath/ath5k/caps.c +++ b/drivers/net/wireless/ath/ath5k/caps.c | |||
@@ -34,7 +34,6 @@ int ath5k_hw_set_capabilities(struct ath5k_hw *ah) | |||
34 | { | 34 | { |
35 | u16 ee_header; | 35 | u16 ee_header; |
36 | 36 | ||
37 | ATH5K_TRACE(ah->ah_sc); | ||
38 | /* Capabilities stored in the EEPROM */ | 37 | /* Capabilities stored in the EEPROM */ |
39 | ee_header = ah->ah_capabilities.cap_eeprom.ee_header; | 38 | ee_header = ah->ah_capabilities.cap_eeprom.ee_header; |
40 | 39 | ||
@@ -123,8 +122,6 @@ int ath5k_hw_get_capability(struct ath5k_hw *ah, | |||
123 | enum ath5k_capability_type cap_type, | 122 | enum ath5k_capability_type cap_type, |
124 | u32 capability, u32 *result) | 123 | u32 capability, u32 *result) |
125 | { | 124 | { |
126 | ATH5K_TRACE(ah->ah_sc); | ||
127 | |||
128 | switch (cap_type) { | 125 | switch (cap_type) { |
129 | case AR5K_CAP_NUM_TXQUEUES: | 126 | case AR5K_CAP_NUM_TXQUEUES: |
130 | if (result) { | 127 | if (result) { |
@@ -173,8 +170,6 @@ yes: | |||
173 | int ath5k_hw_enable_pspoll(struct ath5k_hw *ah, u8 *bssid, | 170 | int ath5k_hw_enable_pspoll(struct ath5k_hw *ah, u8 *bssid, |
174 | u16 assoc_id) | 171 | u16 assoc_id) |
175 | { | 172 | { |
176 | ATH5K_TRACE(ah->ah_sc); | ||
177 | |||
178 | if (ah->ah_version == AR5K_AR5210) { | 173 | if (ah->ah_version == AR5K_AR5210) { |
179 | AR5K_REG_DISABLE_BITS(ah, AR5K_STA_ID1, | 174 | AR5K_REG_DISABLE_BITS(ah, AR5K_STA_ID1, |
180 | AR5K_STA_ID1_NO_PSPOLL | AR5K_STA_ID1_DEFAULT_ANTENNA); | 175 | AR5K_STA_ID1_NO_PSPOLL | AR5K_STA_ID1_DEFAULT_ANTENNA); |
@@ -186,8 +181,6 @@ int ath5k_hw_enable_pspoll(struct ath5k_hw *ah, u8 *bssid, | |||
186 | 181 | ||
187 | int ath5k_hw_disable_pspoll(struct ath5k_hw *ah) | 182 | int ath5k_hw_disable_pspoll(struct ath5k_hw *ah) |
188 | { | 183 | { |
189 | ATH5K_TRACE(ah->ah_sc); | ||
190 | |||
191 | if (ah->ah_version == AR5K_AR5210) { | 184 | if (ah->ah_version == AR5K_AR5210) { |
192 | AR5K_REG_ENABLE_BITS(ah, AR5K_STA_ID1, | 185 | AR5K_REG_ENABLE_BITS(ah, AR5K_STA_ID1, |
193 | AR5K_STA_ID1_NO_PSPOLL | AR5K_STA_ID1_DEFAULT_ANTENNA); | 186 | AR5K_STA_ID1_NO_PSPOLL | AR5K_STA_ID1_DEFAULT_ANTENNA); |
diff --git a/drivers/net/wireless/ath/ath5k/debug.c b/drivers/net/wireless/ath/ath5k/debug.c index 6fb5c5ffa5b1..c58503c3d0d1 100644 --- a/drivers/net/wireless/ath/ath5k/debug.c +++ b/drivers/net/wireless/ath/ath5k/debug.c | |||
@@ -307,7 +307,6 @@ static const struct { | |||
307 | { ATH5K_DEBUG_DUMP_RX, "dumprx", "print received skb content" }, | 307 | { ATH5K_DEBUG_DUMP_RX, "dumprx", "print received skb content" }, |
308 | { ATH5K_DEBUG_DUMP_TX, "dumptx", "print transmit skb content" }, | 308 | { ATH5K_DEBUG_DUMP_TX, "dumptx", "print transmit skb content" }, |
309 | { ATH5K_DEBUG_DUMPBANDS, "dumpbands", "dump bands" }, | 309 | { ATH5K_DEBUG_DUMPBANDS, "dumpbands", "dump bands" }, |
310 | { ATH5K_DEBUG_TRACE, "trace", "trace function calls" }, | ||
311 | { ATH5K_DEBUG_ANI, "ani", "adaptive noise immunity" }, | 310 | { ATH5K_DEBUG_ANI, "ani", "adaptive noise immunity" }, |
312 | { ATH5K_DEBUG_ANY, "all", "show all debug levels" }, | 311 | { ATH5K_DEBUG_ANY, "all", "show all debug levels" }, |
313 | }; | 312 | }; |
diff --git a/drivers/net/wireless/ath/ath5k/debug.h b/drivers/net/wireless/ath/ath5k/debug.h index ddd5b3a99e8d..bd1658729141 100644 --- a/drivers/net/wireless/ath/ath5k/debug.h +++ b/drivers/net/wireless/ath/ath5k/debug.h | |||
@@ -115,18 +115,12 @@ enum ath5k_debug_level { | |||
115 | ATH5K_DEBUG_DUMP_RX = 0x00000100, | 115 | ATH5K_DEBUG_DUMP_RX = 0x00000100, |
116 | ATH5K_DEBUG_DUMP_TX = 0x00000200, | 116 | ATH5K_DEBUG_DUMP_TX = 0x00000200, |
117 | ATH5K_DEBUG_DUMPBANDS = 0x00000400, | 117 | ATH5K_DEBUG_DUMPBANDS = 0x00000400, |
118 | ATH5K_DEBUG_TRACE = 0x00001000, | ||
119 | ATH5K_DEBUG_ANI = 0x00002000, | 118 | ATH5K_DEBUG_ANI = 0x00002000, |
120 | ATH5K_DEBUG_ANY = 0xffffffff | 119 | ATH5K_DEBUG_ANY = 0xffffffff |
121 | }; | 120 | }; |
122 | 121 | ||
123 | #ifdef CONFIG_ATH5K_DEBUG | 122 | #ifdef CONFIG_ATH5K_DEBUG |
124 | 123 | ||
125 | #define ATH5K_TRACE(_sc) do { \ | ||
126 | if (unlikely((_sc)->debug.level & ATH5K_DEBUG_TRACE)) \ | ||
127 | printk(KERN_DEBUG "ath5k trace %s:%d\n", __func__, __LINE__); \ | ||
128 | } while (0) | ||
129 | |||
130 | #define ATH5K_DBG(_sc, _m, _fmt, ...) do { \ | 124 | #define ATH5K_DBG(_sc, _m, _fmt, ...) do { \ |
131 | if (unlikely((_sc)->debug.level & (_m) && net_ratelimit())) \ | 125 | if (unlikely((_sc)->debug.level & (_m) && net_ratelimit())) \ |
132 | ATH5K_PRINTK(_sc, KERN_DEBUG, "(%s:%d): " _fmt, \ | 126 | ATH5K_PRINTK(_sc, KERN_DEBUG, "(%s:%d): " _fmt, \ |
@@ -168,8 +162,6 @@ ath5k_debug_printtxbuf(struct ath5k_softc *sc, struct ath5k_buf *bf); | |||
168 | 162 | ||
169 | #include <linux/compiler.h> | 163 | #include <linux/compiler.h> |
170 | 164 | ||
171 | #define ATH5K_TRACE(_sc) typecheck(struct ath5k_softc *, (_sc)) | ||
172 | |||
173 | static inline void __attribute__ ((format (printf, 3, 4))) | 165 | static inline void __attribute__ ((format (printf, 3, 4))) |
174 | ATH5K_DBG(struct ath5k_softc *sc, unsigned int m, const char *fmt, ...) {} | 166 | ATH5K_DBG(struct ath5k_softc *sc, unsigned int m, const char *fmt, ...) {} |
175 | 167 | ||
diff --git a/drivers/net/wireless/ath/ath5k/desc.c b/drivers/net/wireless/ath/ath5k/desc.c index 7d7b646ab65a..da5dbb63047f 100644 --- a/drivers/net/wireless/ath/ath5k/desc.c +++ b/drivers/net/wireless/ath/ath5k/desc.c | |||
@@ -176,7 +176,6 @@ static int ath5k_hw_setup_4word_tx_desc(struct ath5k_hw *ah, | |||
176 | struct ath5k_hw_4w_tx_ctl *tx_ctl; | 176 | struct ath5k_hw_4w_tx_ctl *tx_ctl; |
177 | unsigned int frame_len; | 177 | unsigned int frame_len; |
178 | 178 | ||
179 | ATH5K_TRACE(ah->ah_sc); | ||
180 | tx_ctl = &desc->ud.ds_tx5212.tx_ctl; | 179 | tx_ctl = &desc->ud.ds_tx5212.tx_ctl; |
181 | 180 | ||
182 | /* | 181 | /* |
@@ -342,8 +341,6 @@ static int ath5k_hw_proc_2word_tx_status(struct ath5k_hw *ah, | |||
342 | struct ath5k_hw_2w_tx_ctl *tx_ctl; | 341 | struct ath5k_hw_2w_tx_ctl *tx_ctl; |
343 | struct ath5k_hw_tx_status *tx_status; | 342 | struct ath5k_hw_tx_status *tx_status; |
344 | 343 | ||
345 | ATH5K_TRACE(ah->ah_sc); | ||
346 | |||
347 | tx_ctl = &desc->ud.ds_tx5210.tx_ctl; | 344 | tx_ctl = &desc->ud.ds_tx5210.tx_ctl; |
348 | tx_status = &desc->ud.ds_tx5210.tx_stat; | 345 | tx_status = &desc->ud.ds_tx5210.tx_stat; |
349 | 346 | ||
@@ -396,8 +393,6 @@ static int ath5k_hw_proc_4word_tx_status(struct ath5k_hw *ah, | |||
396 | struct ath5k_hw_4w_tx_ctl *tx_ctl; | 393 | struct ath5k_hw_4w_tx_ctl *tx_ctl; |
397 | struct ath5k_hw_tx_status *tx_status; | 394 | struct ath5k_hw_tx_status *tx_status; |
398 | 395 | ||
399 | ATH5K_TRACE(ah->ah_sc); | ||
400 | |||
401 | tx_ctl = &desc->ud.ds_tx5212.tx_ctl; | 396 | tx_ctl = &desc->ud.ds_tx5212.tx_ctl; |
402 | tx_status = &desc->ud.ds_tx5212.tx_stat; | 397 | tx_status = &desc->ud.ds_tx5212.tx_stat; |
403 | 398 | ||
@@ -490,7 +485,6 @@ static int ath5k_hw_setup_rx_desc(struct ath5k_hw *ah, struct ath5k_desc *desc, | |||
490 | { | 485 | { |
491 | struct ath5k_hw_rx_ctl *rx_ctl; | 486 | struct ath5k_hw_rx_ctl *rx_ctl; |
492 | 487 | ||
493 | ATH5K_TRACE(ah->ah_sc); | ||
494 | rx_ctl = &desc->ud.ds_rx.rx_ctl; | 488 | rx_ctl = &desc->ud.ds_rx.rx_ctl; |
495 | 489 | ||
496 | /* | 490 | /* |
@@ -593,7 +587,6 @@ static int ath5k_hw_proc_5212_rx_status(struct ath5k_hw *ah, | |||
593 | struct ath5k_hw_rx_status *rx_status; | 587 | struct ath5k_hw_rx_status *rx_status; |
594 | struct ath5k_hw_rx_error *rx_err; | 588 | struct ath5k_hw_rx_error *rx_err; |
595 | 589 | ||
596 | ATH5K_TRACE(ah->ah_sc); | ||
597 | rx_status = &desc->ud.ds_rx.u.rx_stat; | 590 | rx_status = &desc->ud.ds_rx.u.rx_stat; |
598 | 591 | ||
599 | /* Overlay on error */ | 592 | /* Overlay on error */ |
diff --git a/drivers/net/wireless/ath/ath5k/dma.c b/drivers/net/wireless/ath/ath5k/dma.c index 941b51130a6f..484f31870ba8 100644 --- a/drivers/net/wireless/ath/ath5k/dma.c +++ b/drivers/net/wireless/ath/ath5k/dma.c | |||
@@ -48,7 +48,6 @@ | |||
48 | */ | 48 | */ |
49 | void ath5k_hw_start_rx_dma(struct ath5k_hw *ah) | 49 | void ath5k_hw_start_rx_dma(struct ath5k_hw *ah) |
50 | { | 50 | { |
51 | ATH5K_TRACE(ah->ah_sc); | ||
52 | ath5k_hw_reg_write(ah, AR5K_CR_RXE, AR5K_CR); | 51 | ath5k_hw_reg_write(ah, AR5K_CR_RXE, AR5K_CR); |
53 | ath5k_hw_reg_read(ah, AR5K_CR); | 52 | ath5k_hw_reg_read(ah, AR5K_CR); |
54 | } | 53 | } |
@@ -62,7 +61,6 @@ int ath5k_hw_stop_rx_dma(struct ath5k_hw *ah) | |||
62 | { | 61 | { |
63 | unsigned int i; | 62 | unsigned int i; |
64 | 63 | ||
65 | ATH5K_TRACE(ah->ah_sc); | ||
66 | ath5k_hw_reg_write(ah, AR5K_CR_RXD, AR5K_CR); | 64 | ath5k_hw_reg_write(ah, AR5K_CR_RXD, AR5K_CR); |
67 | 65 | ||
68 | /* | 66 | /* |
@@ -96,8 +94,6 @@ u32 ath5k_hw_get_rxdp(struct ath5k_hw *ah) | |||
96 | */ | 94 | */ |
97 | void ath5k_hw_set_rxdp(struct ath5k_hw *ah, u32 phys_addr) | 95 | void ath5k_hw_set_rxdp(struct ath5k_hw *ah, u32 phys_addr) |
98 | { | 96 | { |
99 | ATH5K_TRACE(ah->ah_sc); | ||
100 | |||
101 | ath5k_hw_reg_write(ah, phys_addr, AR5K_RXDP); | 97 | ath5k_hw_reg_write(ah, phys_addr, AR5K_RXDP); |
102 | } | 98 | } |
103 | 99 | ||
@@ -125,7 +121,6 @@ int ath5k_hw_start_tx_dma(struct ath5k_hw *ah, unsigned int queue) | |||
125 | { | 121 | { |
126 | u32 tx_queue; | 122 | u32 tx_queue; |
127 | 123 | ||
128 | ATH5K_TRACE(ah->ah_sc); | ||
129 | AR5K_ASSERT_ENTRY(queue, ah->ah_capabilities.cap_queues.q_tx_num); | 124 | AR5K_ASSERT_ENTRY(queue, ah->ah_capabilities.cap_queues.q_tx_num); |
130 | 125 | ||
131 | /* Return if queue is declared inactive */ | 126 | /* Return if queue is declared inactive */ |
@@ -186,7 +181,6 @@ int ath5k_hw_stop_tx_dma(struct ath5k_hw *ah, unsigned int queue) | |||
186 | unsigned int i = 40; | 181 | unsigned int i = 40; |
187 | u32 tx_queue, pending; | 182 | u32 tx_queue, pending; |
188 | 183 | ||
189 | ATH5K_TRACE(ah->ah_sc); | ||
190 | AR5K_ASSERT_ENTRY(queue, ah->ah_capabilities.cap_queues.q_tx_num); | 184 | AR5K_ASSERT_ENTRY(queue, ah->ah_capabilities.cap_queues.q_tx_num); |
191 | 185 | ||
192 | /* Return if queue is declared inactive */ | 186 | /* Return if queue is declared inactive */ |
@@ -297,7 +291,6 @@ u32 ath5k_hw_get_txdp(struct ath5k_hw *ah, unsigned int queue) | |||
297 | { | 291 | { |
298 | u16 tx_reg; | 292 | u16 tx_reg; |
299 | 293 | ||
300 | ATH5K_TRACE(ah->ah_sc); | ||
301 | AR5K_ASSERT_ENTRY(queue, ah->ah_capabilities.cap_queues.q_tx_num); | 294 | AR5K_ASSERT_ENTRY(queue, ah->ah_capabilities.cap_queues.q_tx_num); |
302 | 295 | ||
303 | /* | 296 | /* |
@@ -340,7 +333,6 @@ int ath5k_hw_set_txdp(struct ath5k_hw *ah, unsigned int queue, u32 phys_addr) | |||
340 | { | 333 | { |
341 | u16 tx_reg; | 334 | u16 tx_reg; |
342 | 335 | ||
343 | ATH5K_TRACE(ah->ah_sc); | ||
344 | AR5K_ASSERT_ENTRY(queue, ah->ah_capabilities.cap_queues.q_tx_num); | 336 | AR5K_ASSERT_ENTRY(queue, ah->ah_capabilities.cap_queues.q_tx_num); |
345 | 337 | ||
346 | /* | 338 | /* |
@@ -400,8 +392,6 @@ int ath5k_hw_update_tx_triglevel(struct ath5k_hw *ah, bool increase) | |||
400 | u32 trigger_level, imr; | 392 | u32 trigger_level, imr; |
401 | int ret = -EIO; | 393 | int ret = -EIO; |
402 | 394 | ||
403 | ATH5K_TRACE(ah->ah_sc); | ||
404 | |||
405 | /* | 395 | /* |
406 | * Disable interrupts by setting the mask | 396 | * Disable interrupts by setting the mask |
407 | */ | 397 | */ |
@@ -451,7 +441,6 @@ done: | |||
451 | */ | 441 | */ |
452 | bool ath5k_hw_is_intr_pending(struct ath5k_hw *ah) | 442 | bool ath5k_hw_is_intr_pending(struct ath5k_hw *ah) |
453 | { | 443 | { |
454 | ATH5K_TRACE(ah->ah_sc); | ||
455 | return ath5k_hw_reg_read(ah, AR5K_INTPEND) == 1 ? 1 : 0; | 444 | return ath5k_hw_reg_read(ah, AR5K_INTPEND) == 1 ? 1 : 0; |
456 | } | 445 | } |
457 | 446 | ||
@@ -475,8 +464,6 @@ int ath5k_hw_get_isr(struct ath5k_hw *ah, enum ath5k_int *interrupt_mask) | |||
475 | { | 464 | { |
476 | u32 data; | 465 | u32 data; |
477 | 466 | ||
478 | ATH5K_TRACE(ah->ah_sc); | ||
479 | |||
480 | /* | 467 | /* |
481 | * Read interrupt status from the Interrupt Status register | 468 | * Read interrupt status from the Interrupt Status register |
482 | * on 5210 | 469 | * on 5210 |
diff --git a/drivers/net/wireless/ath/ath5k/eeprom.c b/drivers/net/wireless/ath/ath5k/eeprom.c index 8490348379ae..ae316fec4a6a 100644 --- a/drivers/net/wireless/ath/ath5k/eeprom.c +++ b/drivers/net/wireless/ath/ath5k/eeprom.c | |||
@@ -35,7 +35,6 @@ static int ath5k_hw_eeprom_read(struct ath5k_hw *ah, u32 offset, u16 *data) | |||
35 | { | 35 | { |
36 | u32 status, timeout; | 36 | u32 status, timeout; |
37 | 37 | ||
38 | ATH5K_TRACE(ah->ah_sc); | ||
39 | /* | 38 | /* |
40 | * Initialize EEPROM access | 39 | * Initialize EEPROM access |
41 | */ | 40 | */ |
diff --git a/drivers/net/wireless/ath/ath5k/gpio.c b/drivers/net/wireless/ath/ath5k/gpio.c index 64a27e73d02e..bc90503f4b7a 100644 --- a/drivers/net/wireless/ath/ath5k/gpio.c +++ b/drivers/net/wireless/ath/ath5k/gpio.c | |||
@@ -34,8 +34,6 @@ void ath5k_hw_set_ledstate(struct ath5k_hw *ah, unsigned int state) | |||
34 | /*5210 has different led mode handling*/ | 34 | /*5210 has different led mode handling*/ |
35 | u32 led_5210; | 35 | u32 led_5210; |
36 | 36 | ||
37 | ATH5K_TRACE(ah->ah_sc); | ||
38 | |||
39 | /*Reset led status*/ | 37 | /*Reset led status*/ |
40 | if (ah->ah_version != AR5K_AR5210) | 38 | if (ah->ah_version != AR5K_AR5210) |
41 | AR5K_REG_DISABLE_BITS(ah, AR5K_PCICFG, | 39 | AR5K_REG_DISABLE_BITS(ah, AR5K_PCICFG, |
@@ -82,7 +80,6 @@ void ath5k_hw_set_ledstate(struct ath5k_hw *ah, unsigned int state) | |||
82 | */ | 80 | */ |
83 | int ath5k_hw_set_gpio_input(struct ath5k_hw *ah, u32 gpio) | 81 | int ath5k_hw_set_gpio_input(struct ath5k_hw *ah, u32 gpio) |
84 | { | 82 | { |
85 | ATH5K_TRACE(ah->ah_sc); | ||
86 | if (gpio >= AR5K_NUM_GPIO) | 83 | if (gpio >= AR5K_NUM_GPIO) |
87 | return -EINVAL; | 84 | return -EINVAL; |
88 | 85 | ||
@@ -98,7 +95,6 @@ int ath5k_hw_set_gpio_input(struct ath5k_hw *ah, u32 gpio) | |||
98 | */ | 95 | */ |
99 | int ath5k_hw_set_gpio_output(struct ath5k_hw *ah, u32 gpio) | 96 | int ath5k_hw_set_gpio_output(struct ath5k_hw *ah, u32 gpio) |
100 | { | 97 | { |
101 | ATH5K_TRACE(ah->ah_sc); | ||
102 | if (gpio >= AR5K_NUM_GPIO) | 98 | if (gpio >= AR5K_NUM_GPIO) |
103 | return -EINVAL; | 99 | return -EINVAL; |
104 | 100 | ||
@@ -114,7 +110,6 @@ int ath5k_hw_set_gpio_output(struct ath5k_hw *ah, u32 gpio) | |||
114 | */ | 110 | */ |
115 | u32 ath5k_hw_get_gpio(struct ath5k_hw *ah, u32 gpio) | 111 | u32 ath5k_hw_get_gpio(struct ath5k_hw *ah, u32 gpio) |
116 | { | 112 | { |
117 | ATH5K_TRACE(ah->ah_sc); | ||
118 | if (gpio >= AR5K_NUM_GPIO) | 113 | if (gpio >= AR5K_NUM_GPIO) |
119 | return 0xffffffff; | 114 | return 0xffffffff; |
120 | 115 | ||
@@ -129,7 +124,6 @@ u32 ath5k_hw_get_gpio(struct ath5k_hw *ah, u32 gpio) | |||
129 | int ath5k_hw_set_gpio(struct ath5k_hw *ah, u32 gpio, u32 val) | 124 | int ath5k_hw_set_gpio(struct ath5k_hw *ah, u32 gpio, u32 val) |
130 | { | 125 | { |
131 | u32 data; | 126 | u32 data; |
132 | ATH5K_TRACE(ah->ah_sc); | ||
133 | 127 | ||
134 | if (gpio >= AR5K_NUM_GPIO) | 128 | if (gpio >= AR5K_NUM_GPIO) |
135 | return -EINVAL; | 129 | return -EINVAL; |
@@ -153,7 +147,6 @@ void ath5k_hw_set_gpio_intr(struct ath5k_hw *ah, unsigned int gpio, | |||
153 | { | 147 | { |
154 | u32 data; | 148 | u32 data; |
155 | 149 | ||
156 | ATH5K_TRACE(ah->ah_sc); | ||
157 | if (gpio >= AR5K_NUM_GPIO) | 150 | if (gpio >= AR5K_NUM_GPIO) |
158 | return; | 151 | return; |
159 | 152 | ||
diff --git a/drivers/net/wireless/ath/ath5k/pcu.c b/drivers/net/wireless/ath/ath5k/pcu.c index 5212e275f1c7..86fdb6ddfaaa 100644 --- a/drivers/net/wireless/ath/ath5k/pcu.c +++ b/drivers/net/wireless/ath/ath5k/pcu.c | |||
@@ -59,8 +59,6 @@ int ath5k_hw_set_opmode(struct ath5k_hw *ah, enum nl80211_iftype op_mode) | |||
59 | 59 | ||
60 | beacon_reg = 0; | 60 | beacon_reg = 0; |
61 | 61 | ||
62 | ATH5K_TRACE(ah->ah_sc); | ||
63 | |||
64 | switch (op_mode) { | 62 | switch (op_mode) { |
65 | case NL80211_IFTYPE_ADHOC: | 63 | case NL80211_IFTYPE_ADHOC: |
66 | pcu_reg |= AR5K_STA_ID1_ADHOC | AR5K_STA_ID1_KEYSRCH_MODE; | 64 | pcu_reg |= AR5K_STA_ID1_ADHOC | AR5K_STA_ID1_KEYSRCH_MODE; |
@@ -173,7 +171,6 @@ void ath5k_hw_set_ack_bitrate_high(struct ath5k_hw *ah, bool high) | |||
173 | */ | 171 | */ |
174 | static int ath5k_hw_set_ack_timeout(struct ath5k_hw *ah, unsigned int timeout) | 172 | static int ath5k_hw_set_ack_timeout(struct ath5k_hw *ah, unsigned int timeout) |
175 | { | 173 | { |
176 | ATH5K_TRACE(ah->ah_sc); | ||
177 | if (ath5k_hw_clocktoh(ah, AR5K_REG_MS(0xffffffff, AR5K_TIME_OUT_ACK)) | 174 | if (ath5k_hw_clocktoh(ah, AR5K_REG_MS(0xffffffff, AR5K_TIME_OUT_ACK)) |
178 | <= timeout) | 175 | <= timeout) |
179 | return -EINVAL; | 176 | return -EINVAL; |
@@ -192,7 +189,6 @@ static int ath5k_hw_set_ack_timeout(struct ath5k_hw *ah, unsigned int timeout) | |||
192 | */ | 189 | */ |
193 | static int ath5k_hw_set_cts_timeout(struct ath5k_hw *ah, unsigned int timeout) | 190 | static int ath5k_hw_set_cts_timeout(struct ath5k_hw *ah, unsigned int timeout) |
194 | { | 191 | { |
195 | ATH5K_TRACE(ah->ah_sc); | ||
196 | if (ath5k_hw_clocktoh(ah, AR5K_REG_MS(0xffffffff, AR5K_TIME_OUT_CTS)) | 192 | if (ath5k_hw_clocktoh(ah, AR5K_REG_MS(0xffffffff, AR5K_TIME_OUT_CTS)) |
197 | <= timeout) | 193 | <= timeout) |
198 | return -EINVAL; | 194 | return -EINVAL; |
@@ -297,7 +293,6 @@ int ath5k_hw_set_lladdr(struct ath5k_hw *ah, const u8 *mac) | |||
297 | u32 low_id, high_id; | 293 | u32 low_id, high_id; |
298 | u32 pcu_reg; | 294 | u32 pcu_reg; |
299 | 295 | ||
300 | ATH5K_TRACE(ah->ah_sc); | ||
301 | /* Set new station ID */ | 296 | /* Set new station ID */ |
302 | memcpy(common->macaddr, mac, ETH_ALEN); | 297 | memcpy(common->macaddr, mac, ETH_ALEN); |
303 | 298 | ||
@@ -357,7 +352,6 @@ void ath5k_hw_set_associd(struct ath5k_hw *ah) | |||
357 | void ath5k_hw_set_bssid_mask(struct ath5k_hw *ah, const u8 *mask) | 352 | void ath5k_hw_set_bssid_mask(struct ath5k_hw *ah, const u8 *mask) |
358 | { | 353 | { |
359 | struct ath_common *common = ath5k_hw_common(ah); | 354 | struct ath_common *common = ath5k_hw_common(ah); |
360 | ATH5K_TRACE(ah->ah_sc); | ||
361 | 355 | ||
362 | /* Cache bssid mask so that we can restore it | 356 | /* Cache bssid mask so that we can restore it |
363 | * on reset */ | 357 | * on reset */ |
@@ -382,7 +376,6 @@ void ath5k_hw_set_bssid_mask(struct ath5k_hw *ah, const u8 *mask) | |||
382 | */ | 376 | */ |
383 | void ath5k_hw_start_rx_pcu(struct ath5k_hw *ah) | 377 | void ath5k_hw_start_rx_pcu(struct ath5k_hw *ah) |
384 | { | 378 | { |
385 | ATH5K_TRACE(ah->ah_sc); | ||
386 | AR5K_REG_DISABLE_BITS(ah, AR5K_DIAG_SW, AR5K_DIAG_SW_DIS_RX); | 379 | AR5K_REG_DISABLE_BITS(ah, AR5K_DIAG_SW, AR5K_DIAG_SW_DIS_RX); |
387 | } | 380 | } |
388 | 381 | ||
@@ -397,7 +390,6 @@ void ath5k_hw_start_rx_pcu(struct ath5k_hw *ah) | |||
397 | */ | 390 | */ |
398 | void ath5k_hw_stop_rx_pcu(struct ath5k_hw *ah) | 391 | void ath5k_hw_stop_rx_pcu(struct ath5k_hw *ah) |
399 | { | 392 | { |
400 | ATH5K_TRACE(ah->ah_sc); | ||
401 | AR5K_REG_ENABLE_BITS(ah, AR5K_DIAG_SW, AR5K_DIAG_SW_DIS_RX); | 393 | AR5K_REG_ENABLE_BITS(ah, AR5K_DIAG_SW, AR5K_DIAG_SW_DIS_RX); |
402 | } | 394 | } |
403 | 395 | ||
@@ -406,8 +398,6 @@ void ath5k_hw_stop_rx_pcu(struct ath5k_hw *ah) | |||
406 | */ | 398 | */ |
407 | void ath5k_hw_set_mcast_filter(struct ath5k_hw *ah, u32 filter0, u32 filter1) | 399 | void ath5k_hw_set_mcast_filter(struct ath5k_hw *ah, u32 filter0, u32 filter1) |
408 | { | 400 | { |
409 | ATH5K_TRACE(ah->ah_sc); | ||
410 | /* Set the multicat filter */ | ||
411 | ath5k_hw_reg_write(ah, filter0, AR5K_MCAST_FILTER0); | 401 | ath5k_hw_reg_write(ah, filter0, AR5K_MCAST_FILTER0); |
412 | ath5k_hw_reg_write(ah, filter1, AR5K_MCAST_FILTER1); | 402 | ath5k_hw_reg_write(ah, filter1, AR5K_MCAST_FILTER1); |
413 | } | 403 | } |
@@ -427,7 +417,6 @@ u32 ath5k_hw_get_rx_filter(struct ath5k_hw *ah) | |||
427 | { | 417 | { |
428 | u32 data, filter = 0; | 418 | u32 data, filter = 0; |
429 | 419 | ||
430 | ATH5K_TRACE(ah->ah_sc); | ||
431 | filter = ath5k_hw_reg_read(ah, AR5K_RX_FILTER); | 420 | filter = ath5k_hw_reg_read(ah, AR5K_RX_FILTER); |
432 | 421 | ||
433 | /*Radar detection for 5212*/ | 422 | /*Radar detection for 5212*/ |
@@ -457,8 +446,6 @@ void ath5k_hw_set_rx_filter(struct ath5k_hw *ah, u32 filter) | |||
457 | { | 446 | { |
458 | u32 data = 0; | 447 | u32 data = 0; |
459 | 448 | ||
460 | ATH5K_TRACE(ah->ah_sc); | ||
461 | |||
462 | /* Set PHY error filter register on 5212*/ | 449 | /* Set PHY error filter register on 5212*/ |
463 | if (ah->ah_version == AR5K_AR5212) { | 450 | if (ah->ah_version == AR5K_AR5212) { |
464 | if (filter & AR5K_RX_FILTER_RADARERR) | 451 | if (filter & AR5K_RX_FILTER_RADARERR) |
@@ -533,8 +520,6 @@ u64 ath5k_hw_get_tsf64(struct ath5k_hw *ah) | |||
533 | 520 | ||
534 | WARN_ON( i == ATH5K_MAX_TSF_READ ); | 521 | WARN_ON( i == ATH5K_MAX_TSF_READ ); |
535 | 522 | ||
536 | ATH5K_TRACE(ah->ah_sc); | ||
537 | |||
538 | return (((u64)tsf_upper1 << 32) | tsf_lower); | 523 | return (((u64)tsf_upper1 << 32) | tsf_lower); |
539 | } | 524 | } |
540 | 525 | ||
@@ -548,8 +533,6 @@ u64 ath5k_hw_get_tsf64(struct ath5k_hw *ah) | |||
548 | */ | 533 | */ |
549 | void ath5k_hw_set_tsf64(struct ath5k_hw *ah, u64 tsf64) | 534 | void ath5k_hw_set_tsf64(struct ath5k_hw *ah, u64 tsf64) |
550 | { | 535 | { |
551 | ATH5K_TRACE(ah->ah_sc); | ||
552 | |||
553 | ath5k_hw_reg_write(ah, tsf64 & 0xffffffff, AR5K_TSF_L32); | 536 | ath5k_hw_reg_write(ah, tsf64 & 0xffffffff, AR5K_TSF_L32); |
554 | ath5k_hw_reg_write(ah, (tsf64 >> 32) & 0xffffffff, AR5K_TSF_U32); | 537 | ath5k_hw_reg_write(ah, (tsf64 >> 32) & 0xffffffff, AR5K_TSF_U32); |
555 | } | 538 | } |
@@ -565,8 +548,6 @@ void ath5k_hw_reset_tsf(struct ath5k_hw *ah) | |||
565 | { | 548 | { |
566 | u32 val; | 549 | u32 val; |
567 | 550 | ||
568 | ATH5K_TRACE(ah->ah_sc); | ||
569 | |||
570 | val = ath5k_hw_reg_read(ah, AR5K_BEACON) | AR5K_BEACON_RESET_TSF; | 551 | val = ath5k_hw_reg_read(ah, AR5K_BEACON) | AR5K_BEACON_RESET_TSF; |
571 | 552 | ||
572 | /* | 553 | /* |
@@ -586,7 +567,6 @@ void ath5k_hw_init_beacon(struct ath5k_hw *ah, u32 next_beacon, u32 interval) | |||
586 | { | 567 | { |
587 | u32 timer1, timer2, timer3; | 568 | u32 timer1, timer2, timer3; |
588 | 569 | ||
589 | ATH5K_TRACE(ah->ah_sc); | ||
590 | /* | 570 | /* |
591 | * Set the additional timers by mode | 571 | * Set the additional timers by mode |
592 | */ | 572 | */ |
@@ -674,7 +654,6 @@ int ath5k_hw_reset_key(struct ath5k_hw *ah, u16 entry) | |||
674 | unsigned int i, type; | 654 | unsigned int i, type; |
675 | u16 micentry = entry + AR5K_KEYTABLE_MIC_OFFSET; | 655 | u16 micentry = entry + AR5K_KEYTABLE_MIC_OFFSET; |
676 | 656 | ||
677 | ATH5K_TRACE(ah->ah_sc); | ||
678 | AR5K_ASSERT_ENTRY(entry, AR5K_KEYTABLE_SIZE); | 657 | AR5K_ASSERT_ENTRY(entry, AR5K_KEYTABLE_SIZE); |
679 | 658 | ||
680 | type = ath5k_hw_reg_read(ah, AR5K_KEYTABLE_TYPE(entry)); | 659 | type = ath5k_hw_reg_read(ah, AR5K_KEYTABLE_TYPE(entry)); |
@@ -749,8 +728,6 @@ int ath5k_hw_set_key(struct ath5k_hw *ah, u16 entry, | |||
749 | bool is_tkip; | 728 | bool is_tkip; |
750 | const u8 *key_ptr; | 729 | const u8 *key_ptr; |
751 | 730 | ||
752 | ATH5K_TRACE(ah->ah_sc); | ||
753 | |||
754 | is_tkip = (key->alg == ALG_TKIP); | 731 | is_tkip = (key->alg == ALG_TKIP); |
755 | 732 | ||
756 | /* | 733 | /* |
@@ -836,7 +813,6 @@ int ath5k_hw_set_key_lladdr(struct ath5k_hw *ah, u16 entry, const u8 *mac) | |||
836 | { | 813 | { |
837 | u32 low_id, high_id; | 814 | u32 low_id, high_id; |
838 | 815 | ||
839 | ATH5K_TRACE(ah->ah_sc); | ||
840 | /* Invalid entry (key table overflow) */ | 816 | /* Invalid entry (key table overflow) */ |
841 | AR5K_ASSERT_ENTRY(entry, AR5K_KEYTABLE_SIZE); | 817 | AR5K_ASSERT_ENTRY(entry, AR5K_KEYTABLE_SIZE); |
842 | 818 | ||
diff --git a/drivers/net/wireless/ath/ath5k/phy.c b/drivers/net/wireless/ath/ath5k/phy.c index 2b298ea869d6..2b3f7a7aded9 100644 --- a/drivers/net/wireless/ath/ath5k/phy.c +++ b/drivers/net/wireless/ath/ath5k/phy.c | |||
@@ -378,8 +378,6 @@ enum ath5k_rfgain ath5k_hw_gainf_calibrate(struct ath5k_hw *ah) | |||
378 | u32 data, type; | 378 | u32 data, type; |
379 | struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom; | 379 | struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom; |
380 | 380 | ||
381 | ATH5K_TRACE(ah->ah_sc); | ||
382 | |||
383 | if (ah->ah_rf_banks == NULL || | 381 | if (ah->ah_rf_banks == NULL || |
384 | ah->ah_gain.g_state == AR5K_RFGAIN_INACTIVE) | 382 | ah->ah_gain.g_state == AR5K_RFGAIN_INACTIVE) |
385 | return AR5K_RFGAIN_INACTIVE; | 383 | return AR5K_RFGAIN_INACTIVE; |
@@ -1353,7 +1351,6 @@ ath5k_hw_rf511x_iq_calibrate(struct ath5k_hw *ah) | |||
1353 | u32 i_pwr, q_pwr; | 1351 | u32 i_pwr, q_pwr; |
1354 | s32 iq_corr, i_coff, i_coffd, q_coff, q_coffd; | 1352 | s32 iq_corr, i_coff, i_coffd, q_coff, q_coffd; |
1355 | int i; | 1353 | int i; |
1356 | ATH5K_TRACE(ah->ah_sc); | ||
1357 | 1354 | ||
1358 | if (!ah->ah_calibration || | 1355 | if (!ah->ah_calibration || |
1359 | ath5k_hw_reg_read(ah, AR5K_PHY_IQ) & AR5K_PHY_IQ_RUN) | 1356 | ath5k_hw_reg_read(ah, AR5K_PHY_IQ) & AR5K_PHY_IQ_RUN) |
@@ -1680,7 +1677,6 @@ ath5k_hw_set_spur_mitigation_filter(struct ath5k_hw *ah, | |||
1680 | 1677 | ||
1681 | int ath5k_hw_phy_disable(struct ath5k_hw *ah) | 1678 | int ath5k_hw_phy_disable(struct ath5k_hw *ah) |
1682 | { | 1679 | { |
1683 | ATH5K_TRACE(ah->ah_sc); | ||
1684 | /*Just a try M.F.*/ | 1680 | /*Just a try M.F.*/ |
1685 | ath5k_hw_reg_write(ah, AR5K_PHY_ACT_DISABLE, AR5K_PHY_ACT); | 1681 | ath5k_hw_reg_write(ah, AR5K_PHY_ACT_DISABLE, AR5K_PHY_ACT); |
1686 | 1682 | ||
@@ -1696,8 +1692,6 @@ u16 ath5k_hw_radio_revision(struct ath5k_hw *ah, unsigned int chan) | |||
1696 | u32 srev; | 1692 | u32 srev; |
1697 | u16 ret; | 1693 | u16 ret; |
1698 | 1694 | ||
1699 | ATH5K_TRACE(ah->ah_sc); | ||
1700 | |||
1701 | /* | 1695 | /* |
1702 | * Set the radio chip access register | 1696 | * Set the radio chip access register |
1703 | */ | 1697 | */ |
@@ -1742,8 +1736,6 @@ u16 ath5k_hw_radio_revision(struct ath5k_hw *ah, unsigned int chan) | |||
1742 | static void /*TODO:Boundary check*/ | 1736 | static void /*TODO:Boundary check*/ |
1743 | ath5k_hw_set_def_antenna(struct ath5k_hw *ah, u8 ant) | 1737 | ath5k_hw_set_def_antenna(struct ath5k_hw *ah, u8 ant) |
1744 | { | 1738 | { |
1745 | ATH5K_TRACE(ah->ah_sc); | ||
1746 | |||
1747 | if (ah->ah_version != AR5K_AR5210) | 1739 | if (ah->ah_version != AR5K_AR5210) |
1748 | ath5k_hw_reg_write(ah, ant & 0x7, AR5K_DEFAULT_ANTENNA); | 1740 | ath5k_hw_reg_write(ah, ant & 0x7, AR5K_DEFAULT_ANTENNA); |
1749 | } | 1741 | } |
@@ -1803,8 +1795,6 @@ ath5k_hw_set_antenna_mode(struct ath5k_hw *ah, u8 ant_mode) | |||
1803 | 1795 | ||
1804 | def_ant = ah->ah_def_ant; | 1796 | def_ant = ah->ah_def_ant; |
1805 | 1797 | ||
1806 | ATH5K_TRACE(ah->ah_sc); | ||
1807 | |||
1808 | switch (channel->hw_value & CHANNEL_MODES) { | 1798 | switch (channel->hw_value & CHANNEL_MODES) { |
1809 | case CHANNEL_A: | 1799 | case CHANNEL_A: |
1810 | case CHANNEL_T: | 1800 | case CHANNEL_T: |
@@ -2968,7 +2958,6 @@ ath5k_hw_txpower(struct ath5k_hw *ah, struct ieee80211_channel *channel, | |||
2968 | u8 type; | 2958 | u8 type; |
2969 | int ret; | 2959 | int ret; |
2970 | 2960 | ||
2971 | ATH5K_TRACE(ah->ah_sc); | ||
2972 | if (txpower > AR5K_TUNE_MAX_TXPOWER) { | 2961 | if (txpower > AR5K_TUNE_MAX_TXPOWER) { |
2973 | ATH5K_ERR(ah->ah_sc, "invalid tx power: %u\n", txpower); | 2962 | ATH5K_ERR(ah->ah_sc, "invalid tx power: %u\n", txpower); |
2974 | return -EINVAL; | 2963 | return -EINVAL; |
@@ -3064,8 +3053,6 @@ int ath5k_hw_set_txpower_limit(struct ath5k_hw *ah, u8 txpower) | |||
3064 | struct ieee80211_channel *channel = ah->ah_current_channel; | 3053 | struct ieee80211_channel *channel = ah->ah_current_channel; |
3065 | u8 ee_mode; | 3054 | u8 ee_mode; |
3066 | 3055 | ||
3067 | ATH5K_TRACE(ah->ah_sc); | ||
3068 | |||
3069 | switch (channel->hw_value & CHANNEL_MODES) { | 3056 | switch (channel->hw_value & CHANNEL_MODES) { |
3070 | case CHANNEL_A: | 3057 | case CHANNEL_A: |
3071 | case CHANNEL_T: | 3058 | case CHANNEL_T: |
diff --git a/drivers/net/wireless/ath/ath5k/qcu.c b/drivers/net/wireless/ath/ath5k/qcu.c index f5831da33f7b..4186ff4c6e9c 100644 --- a/drivers/net/wireless/ath/ath5k/qcu.c +++ b/drivers/net/wireless/ath/ath5k/qcu.c | |||
@@ -31,7 +31,6 @@ Queue Control Unit, DFS Control Unit Functions | |||
31 | int ath5k_hw_get_tx_queueprops(struct ath5k_hw *ah, int queue, | 31 | int ath5k_hw_get_tx_queueprops(struct ath5k_hw *ah, int queue, |
32 | struct ath5k_txq_info *queue_info) | 32 | struct ath5k_txq_info *queue_info) |
33 | { | 33 | { |
34 | ATH5K_TRACE(ah->ah_sc); | ||
35 | memcpy(queue_info, &ah->ah_txq[queue], sizeof(struct ath5k_txq_info)); | 34 | memcpy(queue_info, &ah->ah_txq[queue], sizeof(struct ath5k_txq_info)); |
36 | return 0; | 35 | return 0; |
37 | } | 36 | } |
@@ -42,7 +41,6 @@ int ath5k_hw_get_tx_queueprops(struct ath5k_hw *ah, int queue, | |||
42 | int ath5k_hw_set_tx_queueprops(struct ath5k_hw *ah, int queue, | 41 | int ath5k_hw_set_tx_queueprops(struct ath5k_hw *ah, int queue, |
43 | const struct ath5k_txq_info *queue_info) | 42 | const struct ath5k_txq_info *queue_info) |
44 | { | 43 | { |
45 | ATH5K_TRACE(ah->ah_sc); | ||
46 | AR5K_ASSERT_ENTRY(queue, ah->ah_capabilities.cap_queues.q_tx_num); | 44 | AR5K_ASSERT_ENTRY(queue, ah->ah_capabilities.cap_queues.q_tx_num); |
47 | 45 | ||
48 | if (ah->ah_txq[queue].tqi_type == AR5K_TX_QUEUE_INACTIVE) | 46 | if (ah->ah_txq[queue].tqi_type == AR5K_TX_QUEUE_INACTIVE) |
@@ -69,8 +67,6 @@ int ath5k_hw_setup_tx_queue(struct ath5k_hw *ah, enum ath5k_tx_queue queue_type, | |||
69 | unsigned int queue; | 67 | unsigned int queue; |
70 | int ret; | 68 | int ret; |
71 | 69 | ||
72 | ATH5K_TRACE(ah->ah_sc); | ||
73 | |||
74 | /* | 70 | /* |
75 | * Get queue by type | 71 | * Get queue by type |
76 | */ | 72 | */ |
@@ -149,7 +145,6 @@ int ath5k_hw_setup_tx_queue(struct ath5k_hw *ah, enum ath5k_tx_queue queue_type, | |||
149 | u32 ath5k_hw_num_tx_pending(struct ath5k_hw *ah, unsigned int queue) | 145 | u32 ath5k_hw_num_tx_pending(struct ath5k_hw *ah, unsigned int queue) |
150 | { | 146 | { |
151 | u32 pending; | 147 | u32 pending; |
152 | ATH5K_TRACE(ah->ah_sc); | ||
153 | AR5K_ASSERT_ENTRY(queue, ah->ah_capabilities.cap_queues.q_tx_num); | 148 | AR5K_ASSERT_ENTRY(queue, ah->ah_capabilities.cap_queues.q_tx_num); |
154 | 149 | ||
155 | /* Return if queue is declared inactive */ | 150 | /* Return if queue is declared inactive */ |
@@ -177,7 +172,6 @@ u32 ath5k_hw_num_tx_pending(struct ath5k_hw *ah, unsigned int queue) | |||
177 | */ | 172 | */ |
178 | void ath5k_hw_release_tx_queue(struct ath5k_hw *ah, unsigned int queue) | 173 | void ath5k_hw_release_tx_queue(struct ath5k_hw *ah, unsigned int queue) |
179 | { | 174 | { |
180 | ATH5K_TRACE(ah->ah_sc); | ||
181 | if (WARN_ON(queue >= ah->ah_capabilities.cap_queues.q_tx_num)) | 175 | if (WARN_ON(queue >= ah->ah_capabilities.cap_queues.q_tx_num)) |
182 | return; | 176 | return; |
183 | 177 | ||
@@ -195,7 +189,6 @@ int ath5k_hw_reset_tx_queue(struct ath5k_hw *ah, unsigned int queue) | |||
195 | u32 cw_min, cw_max, retry_lg, retry_sh; | 189 | u32 cw_min, cw_max, retry_lg, retry_sh; |
196 | struct ath5k_txq_info *tq = &ah->ah_txq[queue]; | 190 | struct ath5k_txq_info *tq = &ah->ah_txq[queue]; |
197 | 191 | ||
198 | ATH5K_TRACE(ah->ah_sc); | ||
199 | AR5K_ASSERT_ENTRY(queue, ah->ah_capabilities.cap_queues.q_tx_num); | 192 | AR5K_ASSERT_ENTRY(queue, ah->ah_capabilities.cap_queues.q_tx_num); |
200 | 193 | ||
201 | tq = &ah->ah_txq[queue]; | 194 | tq = &ah->ah_txq[queue]; |
@@ -523,8 +516,6 @@ int ath5k_hw_set_slot_time(struct ath5k_hw *ah, unsigned int slot_time) | |||
523 | { | 516 | { |
524 | u32 slot_time_clock = ath5k_hw_htoclock(ah, slot_time); | 517 | u32 slot_time_clock = ath5k_hw_htoclock(ah, slot_time); |
525 | 518 | ||
526 | ATH5K_TRACE(ah->ah_sc); | ||
527 | |||
528 | if (slot_time < 6 || slot_time_clock > AR5K_SLOT_TIME_MAX) | 519 | if (slot_time < 6 || slot_time_clock > AR5K_SLOT_TIME_MAX) |
529 | return -EINVAL; | 520 | return -EINVAL; |
530 | 521 | ||
diff --git a/drivers/net/wireless/ath/ath5k/reset.c b/drivers/net/wireless/ath/ath5k/reset.c index 307f80e83f94..4f4504c2939c 100644 --- a/drivers/net/wireless/ath/ath5k/reset.c +++ b/drivers/net/wireless/ath/ath5k/reset.c | |||
@@ -201,8 +201,6 @@ static int ath5k_hw_nic_reset(struct ath5k_hw *ah, u32 val) | |||
201 | int ret; | 201 | int ret; |
202 | u32 mask = val ? val : ~0U; | 202 | u32 mask = val ? val : ~0U; |
203 | 203 | ||
204 | ATH5K_TRACE(ah->ah_sc); | ||
205 | |||
206 | /* Read-and-clear RX Descriptor Pointer*/ | 204 | /* Read-and-clear RX Descriptor Pointer*/ |
207 | ath5k_hw_reg_read(ah, AR5K_RXDP); | 205 | ath5k_hw_reg_read(ah, AR5K_RXDP); |
208 | 206 | ||
@@ -246,7 +244,6 @@ static int ath5k_hw_set_power(struct ath5k_hw *ah, enum ath5k_power_mode mode, | |||
246 | unsigned int i; | 244 | unsigned int i; |
247 | u32 staid, data; | 245 | u32 staid, data; |
248 | 246 | ||
249 | ATH5K_TRACE(ah->ah_sc); | ||
250 | staid = ath5k_hw_reg_read(ah, AR5K_STA_ID1); | 247 | staid = ath5k_hw_reg_read(ah, AR5K_STA_ID1); |
251 | 248 | ||
252 | switch (mode) { | 249 | switch (mode) { |
@@ -393,8 +390,6 @@ int ath5k_hw_nic_wakeup(struct ath5k_hw *ah, int flags, bool initial) | |||
393 | mode = 0; | 390 | mode = 0; |
394 | clock = 0; | 391 | clock = 0; |
395 | 392 | ||
396 | ATH5K_TRACE(ah->ah_sc); | ||
397 | |||
398 | /* Wakeup the device */ | 393 | /* Wakeup the device */ |
399 | ret = ath5k_hw_set_power(ah, AR5K_PM_AWAKE, true, 0); | 394 | ret = ath5k_hw_set_power(ah, AR5K_PM_AWAKE, true, 0); |
400 | if (ret) { | 395 | if (ret) { |
@@ -896,8 +891,6 @@ int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode, | |||
896 | u8 mode, freq, ee_mode, ant[2]; | 891 | u8 mode, freq, ee_mode, ant[2]; |
897 | int i, ret; | 892 | int i, ret; |
898 | 893 | ||
899 | ATH5K_TRACE(ah->ah_sc); | ||
900 | |||
901 | s_ant = 0; | 894 | s_ant = 0; |
902 | ee_mode = 0; | 895 | ee_mode = 0; |
903 | staid1_flags = 0; | 896 | staid1_flags = 0; |