[PATCH v2 4/5] clk: allow assigning parent lazily
Simon Glass
sjg at chromium.org
Tue Jan 6 17:22:26 CET 2026
On Wed, 31 Dec 2025 at 12:52, Yang Xiwen via B4 Relay
<devnull+forbidden405.outlook.com at kernel.org> wrote:
>
> From: Yang Xiwen <forbidden405 at outlook.com>
>
> Don't mandate the parent device exists when registering a clock.
>
> Instead, cache the parent name in the core clk struct and resolve the
> parent in clk_get_parent(), which is called lazily upon real use.
>
> Disable this feature for xPLs by default to save size.
>
> Signed-off-by: Yang Xiwen <forbidden405 at outlook.com>
> ---
> drivers/clk/Kconfig | 12 ++++++++++++
> drivers/clk/clk-uclass.c | 44 ++++++++++++++++++++++++++++++++++++++++++--
> drivers/clk/clk.c | 14 ++++++++++++--
> include/clk.h | 2 ++
> 4 files changed, 68 insertions(+), 4 deletions(-)
Reviewed-by: Simon Glass <simon.glass at canonical.com>
More information about the U-Boot
mailing list