 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v4 1/7] xen/arm: extend device_tree_for_each_node
 Hi Stefano, On 06/08/2019 22:49, Stefano Stabellini wrote: Add new parameters to device_tree_for_each_node: node, depth, address_cells, size_cells. address_cells (resp. size_cells) are named address_cells_p (resp. size_cells_p) in the code. But I am not convinced you need them. Per the DT spec (v0.2 section 2.3.5), the parent should either contain the #address-cells and #size-cells or default values (resp. 2 and 1) will be used. It is clearly stated that values are not inherited from the ancestors. So technically the implementation of device_tree_for_each_node() is incorrect. If you follow the spec here, then the address_cells_p and size_cells_p would become unnecessary. NIT: Can we split the if? Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel 
 
 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |