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

Commit 91ea98be authored by Michael Adisumarta's avatar Michael Adisumarta Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa4: IPA PM naming fixes



Change the max_clients from a define to part of the clients enum.
Change the function name set_perf_profile to set_throughput since
it only changes throughput and perf_profile has been deprecated.

Change-Id: I425f438001d5e0024c09cd822b3f813de2840361
Signed-off-by: default avatarMichael Adisumarta <madisuma@codeaurora.org>
parent 43200c30
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1135,7 +1135,7 @@ int ipa_bridge_set_perf_profile(u32 hdl, u32 bandwidth)

	mutex_lock(&ipa_gsb_ctx->iface_lock[hdl]);

	ret = ipa_pm_set_perf_profile(ipa_gsb_ctx->pm_hdl,
	ret = ipa_pm_set_throughput(ipa_gsb_ctx->pm_hdl,
		bandwidth);
	if (ret)
		IPA_GSB_ERR("fail to set perf profile\n");
+1 −1
Original line number Diff line number Diff line
@@ -2596,7 +2596,7 @@ static int ipa_mhi_register_pm(void)
		goto fail_pm_cons;
	}

	res = ipa_pm_set_perf_profile(ipa_mhi_client_ctx->pm_hdl, 1000);
	res = ipa_pm_set_throughput(ipa_mhi_client_ctx->pm_hdl, 1000);
	if (res) {
		IPA_MHI_ERR("fail to set perf profile to PM %d\n", res);
		goto fail_pm_cons;
+1 −1
Original line number Diff line number Diff line
@@ -595,7 +595,7 @@ int ipa_set_perf_profile(struct ipa_perf_profile *profile)
	}

	if (ipa_pm_is_used())
		return ipa_pm_set_perf_profile(
		return ipa_pm_set_throughput(
			ipa_uc_offload_ctx[IPA_UC_NTN]->pm_hdl,
			profile->max_supported_bw_mbps);

+1 −1
Original line number Diff line number Diff line
@@ -1848,7 +1848,7 @@ static int ipa3_usb_xdci_connect_internal(
	if (ipa_pm_is_used()) {
		/* perf profile is not set on  USB DPL pipe */
		if (ttype != IPA_USB_TRANSPORT_DPL) {
			result = ipa_pm_set_perf_profile(
			result = ipa_pm_set_throughput(
				ipa3_usb_ctx->ttype_ctx[ttype].pm_ctx.hdl,
				params->max_supported_bandwidth_mbps);
			if (result) {
+1 −1
Original line number Diff line number Diff line
@@ -846,7 +846,7 @@ int ipa_wdi_set_perf_profile(struct ipa_wdi_perf_profile *profile)
			return -EFAULT;
		}
	} else {
		if (ipa_pm_set_perf_profile(ipa_wdi_ctx->ipa_pm_hdl,
		if (ipa_pm_set_throughput(ipa_wdi_ctx->ipa_pm_hdl,
			profile->max_supported_bw_mbps)) {
			IPA_WDI_ERR("fail to setup pm perf profile\n");
			return -EFAULT;
Loading