Skip to content

Commit f45f979

Browse files
lkaufman-helucacoelho
authored andcommitted
iwlwifi: mvm: disable dbg data collect when fw isn't alive
If FW isn't alive, trying to collect debug data will result in errors both in driver and in the collected data, so just warn and leave the collecting function in this case. Signed-off-by: Liad Kaufman <[email protected]> Signed-off-by: Luca Coelho <[email protected]>
1 parent 0ec971f commit f45f979

File tree

1 file changed

+4
-0
lines changed
  • drivers/net/wireless/intel/iwlwifi/mvm

1 file changed

+4
-0
lines changed

drivers/net/wireless/intel/iwlwifi/mvm/fw-dbg.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,10 @@ int iwl_mvm_fw_dbg_collect_desc(struct iwl_mvm *mvm,
915915
if (trigger)
916916
delay = msecs_to_jiffies(le32_to_cpu(trigger->stop_delay));
917917

918+
if (WARN(mvm->trans->state == IWL_TRANS_NO_FW,
919+
"Can't collect dbg data when FW isn't alive\n"))
920+
return -EIO;
921+
918922
if (test_and_set_bit(IWL_MVM_STATUS_DUMPING_FW_LOG, &mvm->status))
919923
return -EBUSY;
920924

0 commit comments

Comments
 (0)