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