Re: [PATCH v6 3/4] clk: keystone: sci-clk: add restore_context() operation
From: Brian Masney
Date: Mon Apr 27 2026 - 11:09:15 EST
On Mon, Apr 27, 2026 at 02:21:36PM +0200, Thomas Richard (TI) wrote:
> 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@xxxxxx>
> Reviewed-by: Kendall Willis <k-willis@xxxxxx>
> Signed-off-by: Thomas Richard (TI) <thomas.richard@xxxxxxxxxxx>
Reviewed-by: Brian Masney <bmasney@xxxxxxxxxx>