[PATCH V3] clk: scmi: add is_prepared hook
Sudeep Holla
sudeep.holla at arm.com
Thu Aug 22 03:53:31 PDT 2024
On Tue, Aug 06, 2024 at 10:56:01PM +0800, Peng Fan (OSS) wrote:
> 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.
>
LGTM,
Reviewed-by: Sudeep Holla <sudeep.holla at arm.com>
IIUC, there is no dependency on any SCMI changes, so this can go alone
via clk tree.
--
Regards,
Sudeep
More information about the linux-arm-kernel
mailing list