summaryrefslogtreecommitdiff
path: root/drivers/soc/qcom/pil-msa.c
diff options
context:
space:
mode:
authorAnant Goel <anantg@codeaurora.org>2018-07-31 16:38:34 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2018-08-09 23:26:26 -0700
commitc4273f6c0c1514a0885ff69df66436f778b03317 (patch)
treeb000b4c00027a706a92515d87bbc21573ffe54ac /drivers/soc/qcom/pil-msa.c
parenta829ffa67368b66eaf852ca6deb0d2aea9bcc7b5 (diff)
soc: qcom: pil: Disable a clock to maintain clock state across modem SSR
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>
Diffstat (limited to 'drivers/soc/qcom/pil-msa.c')
-rw-r--r--drivers/soc/qcom/pil-msa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/soc/qcom/pil-msa.c b/drivers/soc/qcom/pil-msa.c
index dfb934ae37b9..f7d183a7bbcc 100644
--- a/drivers/soc/qcom/pil-msa.c
+++ b/drivers/soc/qcom/pil-msa.c
@@ -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;
}