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
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) {
> + /*
> + *
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)