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

Commit 7d2cfa12 authored by Bojun Pan's avatar Bojun Pan Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa4: vote for IPA_PC note after uC is loaded



To enable the ipa power collapse, we need to enable rpmh and uC
handshaking so that uC can do the register retention. The logic
is missing for APQ target.

Change-Id: Ife381bc4936b07558a19b29db313ee1ebe06bd2c
Signed-off-by: default avatarBojun Pan <bojunp@codeaurora.org>
parent c93d9386
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -499,6 +499,16 @@ static void ipa3_uc_response_hdlr(enum ipa_irq_type interrupt,
		 */
		ipa3_proxy_clk_unvote();

		/*
		 * To enable ipa power collapse we need to enable rpmh and uc
		 * handshake So that uc can do register retention. To enable
		 * this handshake we need to send the below message to rpmh.
		 * For APQ only target, we do it here once uC loading is
		 * completed.
		 */
		if (ipa3_ctx->platform_type == IPA_PLAT_TYPE_APQ)
			ipa_pc_qmp_enable();

		for (i = 0; i < IPA_HW_NUM_FEATURES; i++) {
			if (ipa3_uc_hdlrs[i].ipa_uc_loaded_hdlr)
				ipa3_uc_hdlrs[i].ipa_uc_loaded_hdlr();