mirror of
https://github.com/raspberrypi/linux.git
synced 2026-01-04 18:27:36 +00:00
wifi: iwlwifi: trans: remove retake_ownership parameter from sw_reset
Remove the retake_ownership parameter from the sw_reset function, as it was always set to true and is not needed by other opmodes. Simplify the sw_reset API function. Signed-off-by: Itamar Shalev <itamar.shalev@intel.com> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://patch.msgid.link/20250709230308.0a103d021815.I2a3da6f83aa691496a53a548bd73bddd4d4d2db8@changeid
This commit is contained in:
committed by
Miri Korenblit
parent
617b19600d
commit
b6b7b33e5a
@@ -199,7 +199,7 @@ static void iwl_fwrt_dump_lmac_error_log(struct iwl_fw_runtime *fwrt, u8 lmac_nu
|
||||
IWL_ERR(trans, "HW error, resetting before reading\n");
|
||||
|
||||
/* reset the device */
|
||||
err = iwl_trans_sw_reset(trans, true);
|
||||
err = iwl_trans_sw_reset(trans);
|
||||
if (err)
|
||||
return;
|
||||
|
||||
|
||||
@@ -498,9 +498,9 @@ void iwl_trans_set_pmi(struct iwl_trans *trans, bool state)
|
||||
}
|
||||
IWL_EXPORT_SYMBOL(iwl_trans_set_pmi);
|
||||
|
||||
int iwl_trans_sw_reset(struct iwl_trans *trans, bool retake_ownership)
|
||||
int iwl_trans_sw_reset(struct iwl_trans *trans)
|
||||
{
|
||||
return iwl_trans_pcie_sw_reset(trans, retake_ownership);
|
||||
return iwl_trans_pcie_sw_reset(trans, true);
|
||||
}
|
||||
IWL_EXPORT_SYMBOL(iwl_trans_sw_reset);
|
||||
|
||||
|
||||
@@ -1096,7 +1096,7 @@ static inline u32 iwl_trans_write_mem32(struct iwl_trans *trans, u32 addr,
|
||||
|
||||
void iwl_trans_set_pmi(struct iwl_trans *trans, bool state);
|
||||
|
||||
int iwl_trans_sw_reset(struct iwl_trans *trans, bool retake_ownership);
|
||||
int iwl_trans_sw_reset(struct iwl_trans *trans);
|
||||
|
||||
void iwl_trans_set_bits_mask(struct iwl_trans *trans, u32 reg,
|
||||
u32 mask, u32 value);
|
||||
|
||||
Reference in New Issue
Block a user