Commit da4234c0 authored by Miri Korenblit's avatar Miri Korenblit
Browse files

wifi: iwlwifi: rename iwl_finish_nic_init



The function is called so because for older devices it sets a bit called
"init_done". But for the latest devices it sets a different bit,
"mac_init". Since this name is not clear anyway, rename it such that it
indicates the logic of the newer devices.
Also add the 'trans' prefix so iw will be clear from the name that this
is a transport API.

Reviewed-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: default avatarMiri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250909061931.a1de688e574b.Ibd41b0c8f7fbae77026e76dbbc085df3eecec538@changeid
parent b7a96258
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -766,7 +766,7 @@ static int iwl_init_otp_access(struct iwl_trans *trans)
{
	int ret;

	ret = iwl_finish_nic_init(trans);
	ret = iwl_trans_activate_nic(trans);
	if (ret)
		return ret;

+1 −1
Original line number Diff line number Diff line
@@ -178,7 +178,7 @@ static void iwl_fwrt_dump_lmac_error_log(struct iwl_fw_runtime *fwrt, u8 lmac_nu
		if (err)
			return;

		err = iwl_finish_nic_init(trans);
		err = iwl_trans_activate_nic(trans);
		if (err)
			return;
	}
+3 −3
Original line number Diff line number Diff line
@@ -396,11 +396,11 @@ int iwl_dump_fh(struct iwl_trans *trans, char **buf)
	return 0;
}

int iwl_finish_nic_init(struct iwl_trans *trans)
int iwl_trans_activate_nic(struct iwl_trans *trans)
{
	return iwl_pcie_gen1_2_finish_nic_init(trans);
	return iwl_pcie_gen1_2_activate_nic(trans);
}
IWL_EXPORT_SYMBOL(iwl_finish_nic_init);
IWL_EXPORT_SYMBOL(iwl_trans_activate_nic);

void iwl_trans_sync_nmi_with_addr(struct iwl_trans *trans, u32 inta_addr,
				  u32 sw_err_bit)
+1 −1
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ void iwl_set_bits_mask_prph(struct iwl_trans *trans, u32 ofs,
void iwl_clear_bits_prph(struct iwl_trans *trans, u32 ofs, u32 mask);
void iwl_force_nmi(struct iwl_trans *trans);

int iwl_finish_nic_init(struct iwl_trans *trans);
int iwl_trans_activate_nic(struct iwl_trans *trans);

/* Error handling */
int iwl_dump_fh(struct iwl_trans *trans, char **buf);
+1 −1
Original line number Diff line number Diff line
@@ -1243,7 +1243,7 @@ static int _iwl_pci_resume(struct device *device, bool restore)
		 * won't really know how to recover.
		 */
		iwl_pcie_prepare_card_hw(trans);
		iwl_finish_nic_init(trans);
		iwl_trans_activate_nic(trans);
		iwl_op_mode_device_powered_off(trans->op_mode);
	}

Loading