summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/ar9003_mac.c
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2012-04-12 10:04:00 -0700
committerJohn W. Linville <linville@tuxdriver.com>2012-04-16 14:16:58 -0400
commit462e58f2b6f2f3ca113b44794f2c35ee8e792b93 (patch)
treef4c4bfb31bb82ff192caeb870b46ff10e8decc11 /drivers/net/wireless/ath/ath9k/ar9003_mac.c
parent24a0731e70fb007c989ae81dd72bc4fe99e27818 (diff)
downloadblackbird-obmc-linux-462e58f2b6f2f3ca113b44794f2c35ee8e792b93.tar.gz
blackbird-obmc-linux-462e58f2b6f2f3ca113b44794f2c35ee8e792b93.zip
ath9k: Gather and report IRQ sync_cause errors.
Report all defined sync_cause errors in debugfs to aid with debugging. Use a macro to print out the interrupts file contents to decrease code duplication. Signed-off-by: Ben Greear <greearb@candelatech.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ar9003_mac.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/ar9003_mac.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_mac.c b/drivers/net/wireless/ath/ath9k/ar9003_mac.c
index a66a13b76848..d9e0824af093 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_mac.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_mac.c
@@ -306,6 +306,8 @@ static bool ar9003_hw_get_isr(struct ath_hw *ah, enum ath9k_int *masked)
ar9003_mci_get_isr(ah, masked);
if (sync_cause) {
+ ath9k_debug_sync_cause(common, sync_cause);
+
if (sync_cause & AR_INTR_SYNC_RADM_CPL_TIMEOUT) {
REG_WRITE(ah, AR_RC, AR_RC_HOSTIF);
REG_WRITE(ah, AR_RC, 0);
OpenPOWER on IntegriCloud