Re: [PATCH 1/3] clk: qcom: rcg2: Initialize shared floor clock state
From: Abel Vesa
Date: Fri Sep 18 2026 - 03:59:31 EST
On 26-09-17 11:06:53, Konrad Dybcio wrote:
> From: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
>
> Shared floor RCGs use the cached parked_cfg whenever CCF considers the
> clock disabled. Unlike the other shared RCG variants, their ops do not
> initialize that cache, leaving it zeroed until the first disable or rate
> change. This can make registration report an undivided XO configuration
> instead of the boot-programmed parent and divider.
>
> Initialize parked_cfg from CFG_REG without parking or otherwise changing
> the hardware. Propagate read failures so a clock with unknown initial
> state is not registered.
>
> Fixes: aec8c0e28ce4 ("clk: qcom: rcg2: add clk_rcg2_shared_floor_ops")
> Assisted-by: LLM
> Signed-off-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
Reviewed-by: Abel Vesa <abel.vesa@xxxxxxxxxxxxxxxx>