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

Commit 7501994f authored by Bojun Pan's avatar Bojun Pan
Browse files

msm:ipa:mhi: fix the number of max channel for mhi



Reuse the same set of evt channel for auto/qmap flow control.
Fix the number of max channel and make sure number of event
channels are within the mhi_evid_limits.

Change-Id: I810da70251c1d9eb9f78a47a6994d1d44eb5eeb0
Signed-off-by: default avatarBojun Pan <bojunp@codeaurora.org>
parent fcf83531
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -502,12 +502,6 @@ int ipa3_mhi_init_engine(struct ipa_mhi_init_engine *params)
	ipa_mhi_max_ul_channels = IPA_MHI_MAX_UL_CHANNELS;
	ipa_mhi_max_dl_channels = IPA_MHI_MAX_DL_CHANNELS;

	/* In case of Auto-pcie config, MHI2_PROD and MHI2_CONS is used */
	if (ipa3_ctx->ipa_config_is_auto == true) {
		ipa_mhi_max_ul_channels++;
		ipa_mhi_max_dl_channels++;
	}

	if ((ipa_mhi_max_ul_channels + ipa_mhi_max_dl_channels) >
		((ipa3_ctx->mhi_evid_limits[1] -
		ipa3_ctx->mhi_evid_limits[0]) + 1)) {