Procházet zdrojové kódy

dataipa: Add logic to hold the clock until modem shutdown

Added a logic to hold the proxy vote for before shutdown and
then unvote when a after shutdown arrives

Change-Id: I14e8e663b0e3334b214de44348d1d16dd1891ae1
Signed-off-by: Abhishek Raghuvanshi <[email protected]>
Abhishek Raghuvanshi před 2 roky
rodič
revize
fcc42df6dd
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c

+ 3 - 0
drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c

@@ -3969,6 +3969,8 @@ static int ipa3_lcl_mdm_ssr_notifier_cb(struct notifier_block *this,
 	case SUBSYS_BEFORE_SHUTDOWN:
 #endif
 		IPAWANINFO("IPA received MPSS BEFORE_SHUTDOWN\n");
+		/* hold a proxy vote for the modem. */
+		ipa3_proxy_clk_vote(atomic_read(&rmnet_ipa3_ctx->is_ssr));
 		/* send SSR before-shutdown notification to IPACM */
 		ipa3_set_modem_up(false);
 		rmnet_ipa_send_ssr_notification(false);
@@ -4006,6 +4008,7 @@ static int ipa3_lcl_mdm_ssr_notifier_cb(struct notifier_block *this,
 	case SUBSYS_AFTER_SHUTDOWN:
 #endif
 		IPAWANINFO("IPA Received MPSS AFTER_SHUTDOWN\n");
+		ipa3_proxy_clk_unvote();
 		/* Clean up netdev resources in AFTER_SHUTDOWN for remoteproc
 		 * enabled targets. */
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 14, 0))