Re: [PATCH V3] clk: scmi: add is_prepared hook

From: Sudeep Holla
Date: Thu Aug 22 2024 - 06:53:45 EST


On Tue, Aug 06, 2024 at 10:56:01PM +0800, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan@xxxxxxx>
>
> Some clocks maybe default enabled by hardware. For clocks that don't
> have users, that will be left in hardware default state, because prepare
> count and enable count is zero,if there is no is_prepared hook to get
> the hardware state. So add is_prepared hook to detect the hardware
> state. Then when disabling the unused clocks, they can be simply
> turned OFF to save power during kernel boot.
>

LGTM,

Reviewed-by: Sudeep Holla <sudeep.holla@xxxxxxx>

IIUC, there is no dependency on any SCMI changes, so this can go alone
via clk tree.

--
Regards,
Sudeep