[PATCH v6 3/4] clk: keystone: sci-clk: add restore_context() operation
Stephen Boyd
sboyd at kernel.org
Tue Apr 28 20:57:50 PDT 2026
Quoting Thomas Richard (TI) (2026-04-27 05:21:36)
> Implement the restore_context() operation to restore the clock rate and the
> clock parent state. The clock rate is saved in sci_clk struct during
> set_rate() and recalc_rate() operations. The parent index is saved in
> sci_clk struct during set_parent() operation. During clock registration,
> the core retrieves each clock’s parent using get_parent() operation to
> ensure the internal clock tree reflects the actual hardware state,
> including any configurations made by the bootloader. So we also save the
> parent index in get_parent().
>
> Reviewed-by: Dhruva Gole <d-gole at ti.com>
> Reviewed-by: Kendall Willis <k-willis at ti.com>
> Signed-off-by: Thomas Richard (TI) <thomas.richard at bootlin.com>
> ---
Acked-by: Stephen Boyd <sboyd at kernel.org>
More information about the linux-arm-kernel
mailing list