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

2024-08-29 Thread Kuninori Morimoto
Hi Rob > > +EXPORT_SYMBOL(of_graph_get_next_port); > > of_graph_is_present should be reimplemented using this function. So > should part of of_graph_get_next_endpoint(). I didn't notice about of_graph_is_present()... but unfortunately, we can't. The biggest reason is "const". This is because

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

2024-08-29 Thread Kuninori Morimoto
Hi Rob > > node { > > => ports@0 { > > port@0 { ... }; > > port@1 { ... }; > > ... > > }; > > => ports@1 { > > ... > > }; > > }; > > There is no schema that supports

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

2024-08-29 Thread Rob Herring
On Wed, Aug 28, 2024 at 05:11:37AM +, 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() > > Here, for_each_of_graph_device_endpoint() loop finds e

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

2024-08-29 Thread Rob Herring
On Wed, Aug 28, 2024 at 05:11:37AM +, 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() > > Here, for_each_of_graph_device_endpoint() loop finds e

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

2024-08-27 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)