[PATCH 1/2] clk: clk_resolve_parent_clk(): resolve external clocks by id

Kaustabh Chakraborty kauschluss at disroot.org
Mon Jan 19 17:59:51 CET 2026


On 2026-01-15 05:11 +02:00, chiffathefox wrote:
> When referencing clocks in DTS registered by another driver,
> clk_resolve_parent_clk() is supposed to return the name
> of the child device that provides the requested clock.
> However, in reality, it returns the name of the parent DTB
> node (e.g. clock-controller at 1a240000). Such devices, for
> instance the exynos7870-cmu-peri driver, do not store any
> clock information in their dev->uclass_priv_ because they
> expect you to call dev->ops->get_rate with the appropriate
> clk->id. So when you try to resolve a clock that depends on
> an externally referenced clock, the resolution fails on the
> parent clock because it doesn't have a  dev->uclass_priv_.
> With this change clk_resolve_parent_clk() will take an
> extra step to actually resolve the child device.
>
> Signed-off-by: chiffathefox <chiffathefoxx at gmail.com>

Tested-by: Kaustabh Chakraborty <kauschluss at disroot.org> # exynos-mobile/exynos7870


More information about the U-Boot mailing list