Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84099693 authored by Skylar Chang's avatar Skylar Chang
Browse files

msm: ipa: disable prefetch for MHI



MHI might be configured to MBIM aggregation.
For this to work TX prefetch needs to be disabled.

Change-Id: I52510f3a7fbe90d5a472703363136e6e909d301c
Acked-by: default avatarAdy Abraham <adya@qti.qualcomm.com>
Signed-off-by: default avatarSkylar Chang <chiaweic@codeaurora.org>
parent af3795d2
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -4535,13 +4535,18 @@ static int ipa3_post_init(const struct ipa3_plat_drv_res *resource_p,


	/*
	/*
	 * IPAv3.5 and above requires to disable prefetch for USB in order
	 * IPAv3.5 and above requires to disable prefetch for USB in order
	 * to allow MBIM to work, currently MBIM is not needed in MHI mode.
	 * to allow MBIM to work.
	 */
	 */
	if ((ipa3_ctx->ipa_hw_type >= IPA_HW_v3_5
	if ((ipa3_ctx->ipa_hw_type >= IPA_HW_v3_5
		&& ipa3_ctx->ipa_hw_type < IPA_HW_v4_0) &&
		&& ipa3_ctx->ipa_hw_type < IPA_HW_v4_0) &&
		(!ipa3_ctx->ipa_config_is_mhi))
		(!ipa3_ctx->ipa_config_is_mhi))
		ipa3_disable_prefetch(IPA_CLIENT_USB_CONS);
		ipa3_disable_prefetch(IPA_CLIENT_USB_CONS);


	if ((ipa3_ctx->ipa_hw_type >= IPA_HW_v3_5
		&& ipa3_ctx->ipa_hw_type < IPA_HW_v4_0) &&
		(ipa3_ctx->ipa_config_is_mhi))
		ipa3_disable_prefetch(IPA_CLIENT_MHI_CONS);

	memset(&gsi_props, 0, sizeof(gsi_props));
	memset(&gsi_props, 0, sizeof(gsi_props));
	gsi_props.ver = ipa3_get_gsi_ver(resource_p->ipa_hw_type);
	gsi_props.ver = ipa3_get_gsi_ver(resource_p->ipa_hw_type);
	gsi_props.ee = resource_p->ee;
	gsi_props.ee = resource_p->ee;