Re: [PATCH] of: property: add port base loop

2021-01-13 Thread Kuninori Morimoto
Hi Rob Thank you for your feedback > > In such case, people want to have port base loop > > instead of endpoints base loop. > > This patch adds such functions/macros. > > I'm a bit hesitant on these too. A driver should generally know what > each port # is (since the binding has to define

Re: [PATCH] of: property: add port base loop

2021-01-13 Thread Rob Herring
On Wed, Jan 13, 2021 at 12:53 AM Kuninori Morimoto wrote: > > > From: Kuninori Morimoto > > We have endpoint base functions > - of_graph_get_next_endpoint() > - of_graph_get_endpoint_count() > - for_each_endpoint_of_node() I actually think these functions don't make

[PATCH] of: property: add port base loop

2021-01-12 Thread Kuninori Morimoto
From: Kuninori Morimoto We have endpoint base functions - of_graph_get_next_endpoint() - of_graph_get_endpoint_count() - for_each_endpoint_of_node() Here, for_each_endpoint_of_node() loop finds endpoint ports { port@0 { (1)