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

Commit 41fc8344 authored by Michael Adisumarta's avatar Michael Adisumarta
Browse files

msm: ipa4: prevent power collapse until uC is loaded



For IPA 4.0 offline charge is not needed and add a condition to
not devote the clock until IPA uC is loaded.

Change-Id: I816ae90a248ff3be94fc57eb63d82f04189d0966
CRs-fixed: 2153974
Signed-off-by: default avatarMichael Adisumarta <madisuma@codeaurora.org>
parent d91ef6f6
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -2455,8 +2455,14 @@ static int ipa3_wwan_probe(struct platform_device *pdev)
				ret);
		goto config_err;
	}

	/*
	 * for IPA 4.0 offline charge is not needed and we need to prevent
	 * power collapse until IPA uC is loaded.
	 */
	atomic_set(&rmnet_ipa3_ctx->is_initialized, 1);
	if (!atomic_read(&rmnet_ipa3_ctx->is_ssr)) {
	if (!atomic_read(&rmnet_ipa3_ctx->is_ssr) && ipa3_ctx->ipa_hw_type !=
		IPA_HW_v4_0) {
		/* offline charging mode */
		ipa3_proxy_clk_unvote();
	}