Devicetree
 help / color / mirror / Atom feed
From: Joseph Telaak <joseph@telaak.dev>
To: sashiko-reviews@lists.linux.dev
Cc: Stephen Boyd <sboyd@kernel.org>,
	Brian Masney <bmasney+clk@redhat.com>,
	Rob Herring <robh@kernel.org>, Conor Dooley <conor+dt@kernel.org>,
	linux-clk@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v5 3/6] clk: siflower: Add SF19A2890 clock manager driver
Date: Tue, 24 Nov 2026 00:24:41 -0500	[thread overview]
Message-ID: <20261124052441.50277-1-joseph@telaak.dev> (raw)
In-Reply-To: <sashiko-outbox-230534@kernel.org>

> devm_clk_hw_register() runs clk_core_reparent_orphans_nolock() before
> returning.  Because data->hws[i] is still ERR_PTR(-EPROBE_DEFER) during
> that call, any already-registered orphan clock parented by the last clock
> (CLK_MUXDIV_NPU_PE) cannot resolve its parent via the OF provider and
> remains orphaned.

No clock in this driver has a late clock as its parent: the muxes take
the PLLs by clk_hw and the oscillators through "clocks". An orphan in
another driver that looks a late clock up through the provider is
picked up by the next clock registration, as with any driver that
registers its clocks before adding its provider. Nothing on the SoC
runs from the NPU clock. On the GL-SFT1200, clk_orphan_summary and
devices_deferred are empty with v5.

> In addition, of_clk_add_hw_provider() in sf19a2890_clk_early_init() calls
> of_clk_set_defaults(node, true) while the 17 late clocks are still
> ERR_PTR(-EPROBE_DEFER).  If the clock controller DT node specifies
> assigned-clocks for any late clock, of_clk_add_hw_provider() fails with
> -EPROBE_DEFER and tears down all early clocks including the CPU clock;

Right: assigned-clocks in the controller's own node can only name the
four early clocks, as with clk-eyeq, which publishes its late clocks the
same way. No device tree sets them there; a consumer's assigned-clocks
are in its own node and applied when it probes.

  reply	other threads:[~2026-11-24  5:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24  4:41 [PATCH v5 0/6] clk: Add the Siflower SF19A2890 clock manager and peripheral clock and reset managers Joseph Telaak via B4 Relay
2026-11-24  4:41 ` [PATCH v5 1/6] MIPS: Add support for Siflower MIPS SoCs Joseph Telaak via B4 Relay
2026-11-24  4:41 ` [PATCH v5 2/6] dt-bindings: clock: Add Siflower SF19A2890 clock manager Joseph Telaak via B4 Relay
2026-11-24  4:41 ` [PATCH v5 3/6] clk: siflower: Add SF19A2890 clock manager driver Joseph Telaak via B4 Relay
2026-11-24  4:58   ` sashiko-bot
2026-11-24  5:24     ` Joseph Telaak [this message]
2026-11-24  4:41 ` [PATCH v5 4/6] dt-bindings: clock: Add Siflower SF19A2890 peripheral clock/reset managers Joseph Telaak via B4 Relay
2026-11-24  4:41 ` [PATCH v5 5/6] clk: siflower: Add SF19A2890 peripheral clock driver Joseph Telaak via B4 Relay
2026-11-24  4:41 ` [PATCH v5 6/6] reset: Add Siflower SF19A2890 peripheral reset driver Joseph Telaak via B4 Relay
2026-11-24  4:52   ` sashiko-bot

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=20261124052441.50277-1-joseph@telaak.dev \
    --to=joseph@telaak.dev \
    --cc=bmasney+clk@redhat.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=sboyd@kernel.org \
    /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