[PATCH 0/3] clk: qcom: smd-rpm: Report enable state to framework

From: Shawn Guo
Date: Mon Nov 08 2021 - 21:26:17 EST


Currently the enable state of smd-rpm clocks are not properly reported
back to framework due to missing .is_enabled and .is_prepared hooks.
This causes a couple of issues.

- All those unused clocks are not voted for off, because framework has
no knowledge that they are unused. It becomes a problem for vlow
power mode support, as we do not have every single RPM clock claimed
and voted for off by client devices, and rely on clock framework to
disable those unused RPM clocks.

- The clk_summary in debugfs doesn't show a correct enable state for
RPM clocks.


Shawn Guo (3):
clk: qcom: smd-rpm: Mark clock enabled in clk_smd_rpm_handoff()
clk: qcom: smd-rpm: Add .is_enabled hook
clk: qcom: smd-rpm: Add .is_prepared hook

drivers/clk/qcom/clk-smd-rpm.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)

--
2.17.1