diff mbox series

[1/3] clk: qcom: smd-rpm: Mark clock enabled in clk_smd_rpm_handoff()

Message ID 20211109022558.14529-2-shawn.guo@linaro.org (mailing list archive)
State Not Applicable
Headers show
Series clk: qcom: smd-rpm: Report enable state to framework | expand

Commit Message

Shawn Guo Nov. 9, 2021, 2:25 a.m. UTC
The result of clock handoff is that the clock is voted by APSS and
enabled by RPM.  So it should be marked as enabled.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
---
 drivers/clk/qcom/clk-smd-rpm.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c
index 26c70c2fbd26..6695a43a3d73 100644
--- a/drivers/clk/qcom/clk-smd-rpm.c
+++ b/drivers/clk/qcom/clk-smd-rpm.c
@@ -178,6 +178,8 @@  static int clk_smd_rpm_handoff(struct clk_smd_rpm *r)
 	if (ret)
 		return ret;
 
+	r->enabled = true;
+
 	return 0;
 }