|
@@ -1086,7 +1086,7 @@ void iwl_fw_error_dump_wk(struct work_struct *work)
|
|
|
|
|
|
if (fwrt->trans->cfg->device_family == IWL_DEVICE_FAMILY_7000) {
|
|
|
/* stop recording */
|
|
|
- iwl_set_bits_prph(fwrt->trans, MON_BUFF_SAMPLE_CTL, 0x100);
|
|
|
+ iwl_fw_dbg_stop_recording(fwrt);
|
|
|
|
|
|
iwl_fw_error_dump(fwrt);
|
|
|
|
|
@@ -1104,10 +1104,7 @@ void iwl_fw_error_dump_wk(struct work_struct *work)
|
|
|
u32 in_sample = iwl_read_prph(fwrt->trans, DBGC_IN_SAMPLE);
|
|
|
u32 out_ctrl = iwl_read_prph(fwrt->trans, DBGC_OUT_CTRL);
|
|
|
|
|
|
- /* stop recording */
|
|
|
- iwl_write_prph(fwrt->trans, DBGC_IN_SAMPLE, 0);
|
|
|
- udelay(100);
|
|
|
- iwl_write_prph(fwrt->trans, DBGC_OUT_CTRL, 0);
|
|
|
+ iwl_fw_dbg_stop_recording(fwrt);
|
|
|
/* wait before we collect the data till the DBGC stop */
|
|
|
udelay(500);
|
|
|
|