iwmc3200wifi: Add a last_fw_err debugfs entry
In order to check what was the last fw error we got accross resets, we add this debugfs entry. It displays the complete ASSERT information. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
d210176eaa
commit
04e715cd46
@ -260,6 +260,11 @@ int iwm_priv_init(struct iwm_priv *iwm)
|
||||
iwm->watchdog.data = (unsigned long)iwm;
|
||||
mutex_init(&iwm->mutex);
|
||||
|
||||
iwm->last_fw_err = kzalloc(sizeof(struct iwm_fw_error_hdr),
|
||||
GFP_KERNEL);
|
||||
if (iwm->last_fw_err == NULL)
|
||||
return -ENOMEM;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -271,6 +276,7 @@ void iwm_priv_deinit(struct iwm_priv *iwm)
|
||||
destroy_workqueue(iwm->txq[i].wq);
|
||||
|
||||
destroy_workqueue(iwm->rx_wq);
|
||||
kfree(iwm->last_fw_err);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user