mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
wifi: iwlwifi: set state to NO_FW on reset
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>
This commit is contained in:
parent
bc863c23d8
commit
82aaa2d865
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user