Re: [Xen-devel] [PATCH v5 1/7] xen/arm: pass node to device_tree_for_each_node

2019-08-14 Thread Stefano Stabellini
On Tue, 13 Aug 2019, Volodymyr Babchuk wrote: > Hi Stefano, > > Stefano Stabellini writes: > > > Add a new parameter to device_tree_for_each_node: node, the node to > > start the search from. Passing 0 triggers the old behavior. > > > > Set min_depth to depth of the current node + 1 and replace t

Re: [Xen-devel] [PATCH v5 1/7] xen/arm: pass node to device_tree_for_each_node

2019-08-14 Thread Stefano Stabellini
On Tue, 13 Aug 2019, Julien Grall wrote: > Hi, > > On 8/12/19 11:28 PM, Stefano Stabellini wrote: > > Add a new parameter to device_tree_for_each_node: node, the node to > > start the search from. Passing 0 triggers the old behavior. > > > > Set min_depth to depth of the current node + 1 and repl

Re: [Xen-devel] [PATCH v5 1/7] xen/arm: pass node to device_tree_for_each_node

2019-08-13 Thread Julien Grall
Hi, On 8/12/19 11:28 PM, Stefano Stabellini wrote: Add a new parameter to device_tree_for_each_node: node, the node to start the search from. Passing 0 triggers the old behavior. Set min_depth to depth of the current node + 1 and replace the for loop with a do/while loop to avoid scanning sibli

Re: [Xen-devel] [PATCH v5 1/7] xen/arm: pass node to device_tree_for_each_node

2019-08-13 Thread Volodymyr Babchuk
Hi Stefano, Stefano Stabellini writes: > Add a new parameter to device_tree_for_each_node: node, the node to > start the search from. Passing 0 triggers the old behavior. > > Set min_depth to depth of the current node + 1 and replace the for > loop with a do/while loop to avoid scanning siblings

[Xen-devel] [PATCH v5 1/7] xen/arm: pass node to device_tree_for_each_node

2019-08-12 Thread Stefano Stabellini
Add a new parameter to device_tree_for_each_node: node, the node to start the search from. Passing 0 triggers the old behavior. Set min_depth to depth of the current node + 1 and replace the for loop with a do/while loop to avoid scanning siblings of the initial node passed as an argument. We nee