[PATCH V3] clk: scmi: add is_prepared hook
Stephen Boyd
sboyd at kernel.org
Tue Aug 27 12:11:57 PDT 2024
Quoting Peng Fan (OSS) (2024-08-06 07:56:01)
> From: Peng Fan <peng.fan at nxp.com>
>
> 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 at ti.com>
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
> ---
Applied to clk-next
More information about the linux-arm-kernel
mailing list