Thread (10 messages) 10 messages, 4 authors, 2025-08-29

Re: [PATCH 2/3] clk: conf: Support assigned-clock-sscs

From: Dan Carpenter <hidden>
Date: 2025-08-15 07:51:42
Also in: arm-scmi, linux-clk, lkml

On Fri, Aug 15, 2025 at 04:50:42PM +0800, Peng Fan wrote:
quoted
quoted
+		if (modfreq_hz || spread_bp || method) {
+			rc = of_parse_phandle_with_args(node, "assigned-clocks",
+					"#clock-cells",	index, &clkspec);
+			if (rc < 0) {
+				/* skip empty (null) phandles */
+				if (rc == -ENOENT)
+					continue;
+				else
+					return rc;
+			}
+
+			if (clkspec.np == node && !clk_supplier) {
Could you add a comment for this condition?  It's strange to me that we
don't iterate through the whole array.
I just follow the logic in __set_clk_parents and __set_clk_rates, nothing
special here.

It is just like to phase out cases as below:
  node-x {
	/* node-x is not a clk provider, but assigned-clocks uses node-x phandle */
	assigned-clocks = <&node-x   XYZ>;
  }
Ah.  Great.  Thanks.

regards,
dan carpenter

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help