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

Commit 5cfbb324 authored by Amir Levy's avatar Amir Levy Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa3: disable prefetch only for IPAv3.5



This change makes sure that IPA driver will not try to
disable prefetch on target which don't have IPA_TX_CFG
register.

Change-Id: Ie0b1fca1dfa14f29d6773d6e2ff72f9ae5a4b1ca
CRs-Fixed: 1097871
Signed-off-by: default avatarAmir Levy <alevy@codeaurora.org>
parent 3afd94a5
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -3963,10 +3963,11 @@ static int ipa3_post_init(const struct ipa3_plat_drv_res *resource_p,
	}

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

	memset(&gsi_props, 0, sizeof(gsi_props));