From: Peng Fan <peng.fan@oss.nxp.com>
To: Marek Vasut <marek.vasut+renesas@mailbox.org>
Cc: u-boot@lists.denx.de, Peng Fan <peng.fan@nxp.com>,
Alice Guo <alice.guo@nxp.com>,
Patrice Chotard <patrice.chotard@foss.st.com>,
Patrick Delaunay <patrick.delaunay@foss.st.com>,
Sean Anderson <seanga2@gmail.com>, Tom Rini <trini@konsulko.com>,
Valentin Caron <valentin.caron@foss.st.com>,
Vinh Nguyen <vinh.nguyen.xz@renesas.com>
Subject: Re: [PATCH v2 4/4] clk: scmi: Defer issue of SCMI_CLOCK_ATTRIBUTES
Date: Fri, 7 Nov 2025 20:16:50 +0800 [thread overview]
Message-ID: <aQ3jMu4dW61RgbWX@nxa18884-linux> (raw)
In-Reply-To: <20251107030352.475169-4-marek.vasut+renesas@mailbox.org>
Hi Marek,
On Fri, Nov 07, 2025 at 04:01:26AM +0100, Marek Vasut wrote:
>Instead of resolving clock control flags using SCMI_CLOCK_ATTRIBUTES
>during probe for each and every clock, resolve the clock control
>flags using SCMI_CLOCK_ATTRIBUTES when the clock control flags are
>first used. Because most clock are never used by U-Boot, this allows
>reducing the amount of SCMI_CLOCK_ATTRIBUTES considerably, and this
>improve probe time of the scmi clock driver and U-Boot start up time.
>
>On Renesas X5H, with 1700+ SCMI clock, the boot time improved by 1.7s .
>
>
> static int scmi_clk_get_ctrl_flags(struct clk *clk, u32 *ctrl_flags)
> {
>+ struct udevice *dev = clk->dev->parent;
I will change this to "clk->dev", otherwise there is CI failure.
No need to use clk->dev->parent here. The core code will
find out the scmi root device.
No need send v3, I could patch it in tree if no objections.
Thanks,
Peng.
> struct clk_scmi *clkscmi;
>+ u32 attributes;
> struct clk *c;
> int ret;
next prev parent reply other threads:[~2025-11-07 14:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-07 3:01 [PATCH v2 1/4] clk: scmi: Bulk allocate all sub-driver instance data Marek Vasut
2025-11-07 3:01 ` [PATCH v2 2/4] clk: scmi: Factor out clock control flags resolution Marek Vasut
2025-11-07 3:01 ` [PATCH v2 3/4] clk: scmi: Postpone clock name resolution Marek Vasut
2025-11-07 3:01 ` [PATCH v2 4/4] clk: scmi: Defer issue of SCMI_CLOCK_ATTRIBUTES Marek Vasut
2025-11-07 12:16 ` Peng Fan [this message]
2025-11-07 23:45 ` Marek Vasut
2025-11-08 8:02 ` Peng Fan
2025-11-09 1:38 ` Marek Vasut
2025-11-07 7:15 ` [PATCH v2 1/4] clk: scmi: Bulk allocate all sub-driver instance data Peng Fan (OSS)
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=aQ3jMu4dW61RgbWX@nxa18884-linux \
--to=peng.fan@oss.nxp.com \
--cc=alice.guo@nxp.com \
--cc=marek.vasut+renesas@mailbox.org \
--cc=patrice.chotard@foss.st.com \
--cc=patrick.delaunay@foss.st.com \
--cc=peng.fan@nxp.com \
--cc=seanga2@gmail.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=valentin.caron@foss.st.com \
--cc=vinh.nguyen.xz@renesas.com \
/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