aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-5000.c
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2009-12-10 17:37:25 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-12-21 18:56:14 -0500
commit696bdee3ba216186e21997d20a839b76158346e6 (patch)
tree2bcf07a3bdf1c3f3adc3e36a9a71bec4191e02b2 /drivers/net/wireless/iwlwifi/iwl-5000.c
parent3a41bbd515d449604f3488c5f8dd62802f09d19b (diff)
iwlwifi: dump "Control and Status Register" when detect uCode HW/SW error
When uCode HW/SW error detected, dumping important CSR (Control and Status Registers) values. Also add "csr" debugfs file to dump the current values of CSR defined in CSR table to syslog. Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-5000.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-5000.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c
index e2f8615c8c9b..5a277cdffd07 100644
--- a/drivers/net/wireless/iwlwifi/iwl-5000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-5000.c
@@ -1465,6 +1465,7 @@ struct iwl_lib_ops iwl5000_lib = {
1465 .is_valid_rtc_data_addr = iwl5000_hw_valid_rtc_data_addr, 1465 .is_valid_rtc_data_addr = iwl5000_hw_valid_rtc_data_addr,
1466 .dump_nic_event_log = iwl_dump_nic_event_log, 1466 .dump_nic_event_log = iwl_dump_nic_event_log,
1467 .dump_nic_error_log = iwl_dump_nic_error_log, 1467 .dump_nic_error_log = iwl_dump_nic_error_log,
1468 .dump_csr = iwl_dump_csr,
1468 .load_ucode = iwl5000_load_ucode, 1469 .load_ucode = iwl5000_load_ucode,
1469 .init_alive_start = iwl5000_init_alive_start, 1470 .init_alive_start = iwl5000_init_alive_start,
1470 .alive_notify = iwl5000_alive_notify, 1471 .alive_notify = iwl5000_alive_notify,
@@ -1517,6 +1518,7 @@ static struct iwl_lib_ops iwl5150_lib = {
1517 .is_valid_rtc_data_addr = iwl5000_hw_valid_rtc_data_addr, 1518 .is_valid_rtc_data_addr = iwl5000_hw_valid_rtc_data_addr,
1518 .dump_nic_event_log = iwl_dump_nic_event_log, 1519 .dump_nic_event_log = iwl_dump_nic_event_log,
1519 .dump_nic_error_log = iwl_dump_nic_error_log, 1520 .dump_nic_error_log = iwl_dump_nic_error_log,
1521 .dump_csr = iwl_dump_csr,
1520 .load_ucode = iwl5000_load_ucode, 1522 .load_ucode = iwl5000_load_ucode,
1521 .init_alive_start = iwl5000_init_alive_start, 1523 .init_alive_start = iwl5000_init_alive_start,
1522 .alive_notify = iwl5000_alive_notify, 1524 .alive_notify = iwl5000_alive_notify,