From: Tom Rini <trini@konsulko.com>
To: Yang Xiwen <forbidden405@outlook.com>
Cc: Simon Glass <sjg@chromium.org>, Lukasz Majewski <lukma@denx.de>,
Sean Anderson <seanga2@gmail.com>,
u-boot@lists.denx.de, Simon Glass <simon.glass@canonical.com>
Subject: Re: [PATCH v3 0/6] clk: support arbitrary clk_register() sequence
Date: Mon, 2 Feb 2026 14:17:06 -0600 [thread overview]
Message-ID: <20260202201706.GA4073175@bill-the-cat> (raw)
In-Reply-To: <20260120-clk-reparent-v3-0-0d43d4b362ac@outlook.com>
[-- Attachment #1: Type: text/plain, Size: 1379 bytes --]
On Tue, Jan 20, 2026 at 03:07:17AM +0800, Yang Xiwen wrote:
> Currently, the U-Boot clk framework mandates that clock registration
> begins at the root and proceeds to children. This creates an additional
> requirement that does not exist in the Linux kernel, making the porting
> of clk drivers more difficult.
>
> This series handles the dependency entirely within the clk framework,
> allowing drivers the freedom to register clocks in any order.
>
> This is achieved by assigning the parent "lazily". The framework caches
> the parent name in the core clk struct and attempts to resolve the
> actual parent when clk consumers call clk_get_parent(). The process is
> transparent to clk consumers as long as they use standard clk framework
> APIs.
>
> I've run `ut dm clk*` and verified these commits do not break any
> existing test cases. It also passes the new test case.
>
> This feature is disabled for xPLs by default. I have not found a clean
> way to enable this separately for xPLs without introducing a repetitive
> Kconfig entry (e.g., xPL_CLK_LAZY_REPARENT), which looks very ugly.
>
> Signed-off-by: Yang Xiwen <forbidden405@outlook.com>
This, like some previous clk reworks, leads to run-time breakage
(failure to boot) on TI K3 and likely other platforms (I want to say
some rockchip was broken last time) as well.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2026-02-02 20:17 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-19 19:07 [PATCH v3 0/6] clk: support arbitrary clk_register() sequence Yang Xiwen via B4 Relay
2026-01-19 19:07 ` [PATCH v3 1/6] drivers: core: device: set new parent when old parent is NULL Yang Xiwen via B4 Relay
2026-02-04 0:23 ` Simon Glass
2026-01-19 19:07 ` [PATCH v3 2/6] test: dm: core: add some assertions for device_reparent() Yang Xiwen via B4 Relay
2026-02-04 0:23 ` Simon Glass
2026-01-19 19:07 ` [PATCH v3 3/6] clk: add uclass id check to clk_get_parent() Yang Xiwen via B4 Relay
2026-01-19 19:07 ` [PATCH v3 4/6] clk: use clk_get_parent() helper in clk_en(dis)able() Yang Xiwen via B4 Relay
2026-01-19 19:07 ` [PATCH v3 5/6] clk: allow assigning parent lazily Yang Xiwen via B4 Relay
2026-01-19 19:07 ` [PATCH v3 6/6] test: clk: add test for CLK_LAZY_REPARENT Yang Xiwen via B4 Relay
2026-02-04 0:23 ` Simon Glass
2026-02-02 20:17 ` Tom Rini [this message]
2026-02-03 15:28 ` [PATCH v3 0/6] clk: support arbitrary clk_register() sequence Yang Xiwen
2026-02-03 16:15 ` Tom Rini
2026-02-07 14:58 ` Yang Xiwen
2026-02-09 14:23 ` Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260202201706.GA4073175@bill-the-cat \
--to=trini@konsulko.com \
--cc=forbidden405@outlook.com \
--cc=lukma@denx.de \
--cc=seanga2@gmail.com \
--cc=simon.glass@canonical.com \
--cc=sjg@chromium.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox