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

Commit bcfae36a authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 130f591c 7501994f
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)) {