Re: [PATCH v3 1/9] of: property: add of_graph_get_next_port()

2024-08-25 Thread Kuninori Morimoto
Hi Krzysztof > > + prev = of_get_child_by_name(parent, "ports"); (snip) > > + if (!prev) { > > + prev = of_node_get(parent); > > + > > + /* check wether it has port node */ > > + struct device_node *port __free(device_node

Re: [PATCH v3 1/9] of: property: add of_graph_get_next_port()

2024-08-25 Thread Krzysztof Kozlowski
On Mon, Aug 26, 2024 at 02:43:23AM +, Kuninori Morimoto wrote: > We have endpoint base functions > - of_graph_get_next_device_endpoint() > - of_graph_get_device_endpoint_count() > - for_each_of_graph_device_endpoint() > + if (!prev) { > + /* > + *

[PATCH v3 1/9] of: property: add of_graph_get_next_port()

2024-08-25 Thread Kuninori Morimoto
We have endpoint base functions - of_graph_get_next_device_endpoint() - of_graph_get_device_endpoint_count() - for_each_of_graph_device_endpoint() Here, for_each_of_graph_device_endpoint() loop finds each endpoints ports { port@0 { (1)