[PATCH V2] clk: scmi: add is_prepared hook
Dhruva Gole
d-gole at ti.com
Fri Jul 26 06:52:31 PDT 2024
On Jul 26, 2024 at 21:10:07 +0800, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan at nxp.com>
>
> Some clks maybe default enabled by hardware, so add is_prepared hook
> for non-atomic clk_ops to get the status of the clk. Then when disabling
> unused clks, those unused clks but default hardware on clks could be
> in off state to save power.
Just a nit - reword the commit message as:
Then when disabling the unused clocks, they can be simply turned OFF to
save power.
Also if you can make it still verbose, explain when you expect this
disabling of unused clks to take place exactly? During boot? Driver probe sequence?
or By some user commands?
>
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
> ---
>
> V2:
> Provider helper __scmi_clk_is_enabled for atomic and non-atomic usage
> Move is_prepared hook out of SCMI_CLK_STATE_CTRL_SUPPORTED
[...]
--
Best regards,
Dhruva Gole <d-gole at ti.com>
More information about the linux-arm-kernel
mailing list