OSDN Git Service

soc: qcom: pil: Disable a clock to maintain clock state across modem SSR
authorAnant Goel <anantg@codeaurora.org>
Tue, 31 Jul 2018 23:38:34 +0000 (16:38 -0700)
committerGerrit - the friendly Code Review server <code-review@localhost>
Fri, 10 Aug 2018 06:26:26 +0000 (23:26 -0700)
A disable and unprepare is called on a clock which is voted for, but never
unvoted for. By disabling and unpreparing this clock, the clock state is
maintained the same across modem restarts.

Change-Id: I4d6cb219ac718de4b7bad593d7f7aa9fd67b1cef
Signed-off-by: Anant Goel <anantg@codeaurora.org>
drivers/soc/qcom/pil-msa.c

index dfb934a..f7d183a 100644 (file)
@@ -331,6 +331,9 @@ int pil_mss_shutdown(struct pil_desc *pil)
                drv->is_booted = false;
        }
 
+       if (drv->mx_spike_wa && drv->ahb_clk_vote)
+               clk_disable_unprepare(drv->ahb_clk);
+
        return ret;
 }