diff options
author | Ben Greear <greearb@candelatech.com> | 2012-04-12 10:04:00 -0700 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-16 14:16:58 -0400 |
commit | 462e58f2b6f2f3ca113b44794f2c35ee8e792b93 (patch) | |
tree | f4c4bfb31bb82ff192caeb870b46ff10e8decc11 /drivers/net/wireless/ath/ath9k/hw.h | |
parent | 24a0731e70fb007c989ae81dd72bc4fe99e27818 (diff) | |
download | talos-obmc-linux-462e58f2b6f2f3ca113b44794f2c35ee8e792b93.tar.gz talos-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/hw.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index 1d4b98331ce2..dd4b8f4097c8 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h @@ -956,6 +956,12 @@ bool ath9k_hw_check_alive(struct ath_hw *ah); bool ath9k_hw_setpower(struct ath_hw *ah, enum ath9k_power_mode mode); +#ifdef CONFIG_ATH9K_DEBUGFS +void ath9k_debug_sync_cause(struct ath_common *common, u32 sync_cause); +#else +static void ath9k_debug_sync_cause(struct ath_common *common, u32 sync_cause) {} +#endif + /* Generic hw timer primitives */ struct ath_gen_timer *ath_gen_timer_alloc(struct ath_hw *ah, void (*trigger)(void *), |