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

From: Stephen Boyd
Date: Tue Aug 27 2024 - 15:12:54 EST


Quoting Peng Fan (OSS) (2024-08-06 07:56:01)
> 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.
>
> Reviewed-by: Dhruva Gole <d-gole@xxxxxx>
> Signed-off-by: Peng Fan <peng.fan@xxxxxxx>
> ---

Applied to clk-next