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

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

Merge "msm: ipa: vote for device side through mhi for tethering use cases"

parents fd6a4f9f b3d862a2
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -1458,7 +1458,8 @@ static int ipa_mpm_vote_unvote_pcie_clk(enum ipa_mpm_clk_vote_type vote,


	if (vote == CLK_ON) {
	if (vote == CLK_ON) {
		result = mhi_device_get_sync(
		result = mhi_device_get_sync(
			ipa_mpm_ctx->md[probe_id].mhi_dev, MHI_VOTE_BUS);
			ipa_mpm_ctx->md[probe_id].mhi_dev,
				MHI_VOTE_BUS | MHI_VOTE_DEVICE);
		if (result) {
		if (result) {
			IPA_MPM_ERR("mhi_sync_get failed for probe_id %d\n",
			IPA_MPM_ERR("mhi_sync_get failed for probe_id %d\n",
				result, probe_id);
				result, probe_id);
@@ -1479,7 +1480,8 @@ static int ipa_mpm_vote_unvote_pcie_clk(enum ipa_mpm_clk_vote_type vote,
			*is_acted = true;
			*is_acted = true;
			return 0;
			return 0;
		}
		}
		mhi_device_put(ipa_mpm_ctx->md[probe_id].mhi_dev, MHI_VOTE_BUS);
		mhi_device_put(ipa_mpm_ctx->md[probe_id].mhi_dev,
				MHI_VOTE_BUS | MHI_VOTE_DEVICE);
		IPA_MPM_DBG("probe_id %d PCIE clock off\n", probe_id);
		IPA_MPM_DBG("probe_id %d PCIE clock off\n", probe_id);
		atomic_dec(&ipa_mpm_ctx->md[probe_id].clk_cnt.pcie_clk_cnt);
		atomic_dec(&ipa_mpm_ctx->md[probe_id].clk_cnt.pcie_clk_cnt);
		atomic_dec(&ipa_mpm_ctx->pcie_clk_total_cnt);
		atomic_dec(&ipa_mpm_ctx->pcie_clk_total_cnt);