diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/mac.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/mac.c | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/drivers/net/wireless/ath/ath9k/mac.c b/drivers/net/wireless/ath/ath9k/mac.c index b04b37b1124..b96e750d4c3 100644 --- a/drivers/net/wireless/ath/ath9k/mac.c +++ b/drivers/net/wireless/ath/ath9k/mac.c | |||
@@ -204,9 +204,8 @@ bool ath9k_hw_stoptxdma(struct ath_hw *ah, u32 q) | |||
204 | wait = wait_time; | 204 | wait = wait_time; |
205 | while (ath9k_hw_numtxpending(ah, q)) { | 205 | while (ath9k_hw_numtxpending(ah, q)) { |
206 | if ((--wait) == 0) { | 206 | if ((--wait) == 0) { |
207 | ath_print(common, ATH_DBG_FATAL, | 207 | ath_err(common, |
208 | "Failed to stop TX DMA in 100 " | 208 | "Failed to stop TX DMA in 100 msec after killing last frame\n"); |
209 | "msec after killing last frame\n"); | ||
210 | break; | 209 | break; |
211 | } | 210 | } |
212 | udelay(ATH9K_TIME_QUANTUM); | 211 | udelay(ATH9K_TIME_QUANTUM); |
@@ -368,14 +367,12 @@ int ath9k_hw_setuptxqueue(struct ath_hw *ah, enum ath9k_tx_queue type, | |||
368 | ATH9K_TX_QUEUE_INACTIVE) | 367 | ATH9K_TX_QUEUE_INACTIVE) |
369 | break; | 368 | break; |
370 | if (q == pCap->total_queues) { | 369 | if (q == pCap->total_queues) { |
371 | ath_print(common, ATH_DBG_FATAL, | 370 | ath_err(common, "No available TX queue\n"); |
372 | "No available TX queue\n"); | ||
373 | return -1; | 371 | return -1; |
374 | } | 372 | } |
375 | break; | 373 | break; |
376 | default: | 374 | default: |
377 | ath_print(common, ATH_DBG_FATAL, | 375 | ath_err(common, "Invalid TX queue type: %u\n", type); |
378 | "Invalid TX queue type: %u\n", type); | ||
379 | return -1; | 376 | return -1; |
380 | } | 377 | } |
381 | 378 | ||
@@ -383,8 +380,7 @@ int ath9k_hw_setuptxqueue(struct ath_hw *ah, enum ath9k_tx_queue type, | |||
383 | 380 | ||
384 | qi = &ah->txq[q]; | 381 | qi = &ah->txq[q]; |
385 | if (qi->tqi_type != ATH9K_TX_QUEUE_INACTIVE) { | 382 | if (qi->tqi_type != ATH9K_TX_QUEUE_INACTIVE) { |
386 | ath_print(common, ATH_DBG_FATAL, | 383 | ath_err(common, "TX queue: %u already active\n", q); |
387 | "TX queue: %u already active\n", q); | ||
388 | return -1; | 384 | return -1; |
389 | } | 385 | } |
390 | memset(qi, 0, sizeof(struct ath9k_tx_queue_info)); | 386 | memset(qi, 0, sizeof(struct ath9k_tx_queue_info)); |
@@ -735,9 +731,9 @@ bool ath9k_hw_setrxabort(struct ath_hw *ah, bool set) | |||
735 | AR_DIAG_RX_ABORT)); | 731 | AR_DIAG_RX_ABORT)); |
736 | 732 | ||
737 | reg = REG_READ(ah, AR_OBS_BUS_1); | 733 | reg = REG_READ(ah, AR_OBS_BUS_1); |
738 | ath_print(ath9k_hw_common(ah), ATH_DBG_FATAL, | 734 | ath_err(ath9k_hw_common(ah), |
739 | "RX failed to go idle in 10 ms RXSM=0x%x\n", | 735 | "RX failed to go idle in 10 ms RXSM=0x%x\n", |
740 | reg); | 736 | reg); |
741 | 737 | ||
742 | return false; | 738 | return false; |
743 | } | 739 | } |
@@ -791,12 +787,11 @@ bool ath9k_hw_stopdmarecv(struct ath_hw *ah) | |||
791 | } | 787 | } |
792 | 788 | ||
793 | if (i == 0) { | 789 | if (i == 0) { |
794 | ath_print(common, ATH_DBG_FATAL, | 790 | ath_err(common, |
795 | "DMA failed to stop in %d ms " | 791 | "DMA failed to stop in %d ms AR_CR=0x%08x AR_DIAG_SW=0x%08x\n", |
796 | "AR_CR=0x%08x AR_DIAG_SW=0x%08x\n", | 792 | AH_RX_STOP_DMA_TIMEOUT / 1000, |
797 | AH_RX_STOP_DMA_TIMEOUT / 1000, | 793 | REG_READ(ah, AR_CR), |
798 | REG_READ(ah, AR_CR), | 794 | REG_READ(ah, AR_DIAG_SW)); |
799 | REG_READ(ah, AR_DIAG_SW)); | ||
800 | return false; | 795 | return false; |
801 | } else { | 796 | } else { |
802 | return true; | 797 | return true; |