]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: iwlwifi: set state to NO_FW on reset
authorJohannes Berg <johannes.berg@intel.com>
Tue, 12 May 2026 19:34:30 +0000 (22:34 +0300)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Tue, 26 May 2026 12:17:11 +0000 (15:17 +0300)
On debugfs reset, set the transport FW state to NO_FW
so that the restart won't attempt to send commands,
which of course fails because the FW was killed during
the error dump.

Use iwl_trans_fw_error() now since that's effectively
the same as the old code plus setting the state.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://patch.msgid.link/20260512222731.cdebf264f5e1.Ia31783c74df0d4b66816a1b34d3771b9a717048b@changeid
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/trans.c

index 9f4c99dca1952a3b52c4c9a4466162d3ddd6f714..e3603571bdd952759dc771fb5483d9b3b946616d 100644 (file)
@@ -3201,8 +3201,7 @@ static ssize_t iwl_dbgfs_reset_write(struct file *file,
                                return -EINVAL;
                        trans->request_top_reset = 1;
                }
-               iwl_op_mode_nic_error(trans->op_mode, IWL_ERR_TYPE_DEBUGFS);
-               iwl_trans_schedule_reset(trans, IWL_ERR_TYPE_DEBUGFS);
+               iwl_trans_fw_error(trans, IWL_ERR_TYPE_DEBUGFS);
                return count;
        }