clk: scmi: Defer issue of SCMI_CLOCK_ATTRIBUTES
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 9 Nov 2025 01:35:09 +0000 (02:35 +0100)
committerPeng Fan <peng.fan@nxp.com>
Mon, 10 Nov 2025 12:57:49 +0000 (20:57 +0800)
commit3547e315c188cdbb24312543d67d132b113eb01e
tree6683f9a9dbcb077c4f9632e1d7a9b5a07b05836f
parentfdb1bffe2827e6107288c57e1f2e86956fd1a2bc
clk: scmi: Defer issue of SCMI_CLOCK_ATTRIBUTES

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 .

Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/clk/clk_scmi.c