diff options
| author | Shahar S Matityahu <[email protected]> | 2019-07-09 09:27:07 +0000 |
|---|---|---|
| committer | Luca Coelho <[email protected]> | 2019-09-06 12:52:07 +0000 |
| commit | 787350ef8d8044754582e79d28a0d5ef4df08ba4 (patch) | |
| tree | 3eaa4b9824e3a21e72e471e68f10f023e10342f3 /drivers/net/wireless/intel/iwlwifi/fw/runtime.h | |
| parent | iwlwifi: dbg_ini: remove periodic trigger (diff) | |
| download | kernel-787350ef8d8044754582e79d28a0d5ef4df08ba4.tar.gz kernel-787350ef8d8044754582e79d28a0d5ef4df08ba4.zip | |
iwlwifi: dbg: remove iwl_fw_cancel_dumps function
Use cancel_delayed_work_sync on the dump workers only in case of
unloading the op mode. In any other case use iwl_fw_flush_dumps or
iwl_fw_dbg_stop_sync (depends if the op mode mutex is held or not).
This way, the driver will wait until debug data is collected in all
cases but op mode unloading.
Signed-off-by: Shahar S Matityahu <[email protected]>
Signed-off-by: Luca Coelho <[email protected]>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/fw/runtime.h')
| -rw-r--r-- | drivers/net/wireless/intel/iwlwifi/fw/runtime.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/fw/runtime.h b/drivers/net/wireless/intel/iwlwifi/fw/runtime.h index 8b8ab6d692b6..be436c18a047 100644 --- a/drivers/net/wireless/intel/iwlwifi/fw/runtime.h +++ b/drivers/net/wireless/intel/iwlwifi/fw/runtime.h @@ -203,6 +203,10 @@ static inline void iwl_fw_runtime_free(struct iwl_fw_runtime *fwrt) kfree(active->trig); active->trig = NULL; } + + iwl_dbg_tlv_del_timers(fwrt->trans); + for (i = 0; i < IWL_FW_RUNTIME_DUMP_WK_NUM; i++) + cancel_delayed_work_sync(&fwrt->dump.wks[i].wk); } void iwl_fw_runtime_suspend(struct iwl_fw_runtime *fwrt); |
