Re: [PATCH] clk: rockchip: Skip PLL lock wait when GRF regmap is unavailable
From: Praneeth Balasubramanian
Date: Sat Dec 05 2026 - 03:21:38 EST
On Sat, 05 Dec 2026 06:58:51 +0000, sashiko-bot@xxxxxxxxxx wrote:
> [Severity: Medium]
> Can returning 0 immediately here let downstream consumers run on an
> unlocked PLL?
Yes. Please do not apply this version. Without the GRF there is no way
to see the lock bit, so v2 does not let Linux gate these PLLs at all.
It adds rk3066 PLL ops with only .recalc_rate and .is_enabled and uses
them when the GRF is missing. The PLL then stays as the bootloader left
it. I did not use a fixed delay, since I could not find a lock time to
base it on.
v2 also fixes the comment above rockchip_pll_wait_lock(), cites
9be83448951a in Fixes, names rockchip_rk3066_pll_enable() and says that
rockchip,grf is optional in the bindings.