On Tue, 2015-09-29 at 17:21 +0100, Julien Grall wrote:
> The functions dt_n_*_cells return the number of cells for a "reg"
> property of a given node. So those numbers won't be correct if the
> parent of a given node is passed.
> 
> This is fine today because the parent is always the root node which
> means there is no upper parent.
> 
> Introduce new helpers dt_child_n_*_cells to retrieve the number of
> cells for the address and size that can be used to create the "reg"
> property of the immediate child of a given parent. Also introduce
> dt_child_set_range to pair up with dt_child_n_*_cells.
> 
> Use the new helpers when creating the hypervisor and memory node where
> we only have the parent in hand. This is because those nodes are created
> from scratch by Xen and therefore we don't have a dt_device_node for
> them. The only thing we have is a pointer to their future parent.
> 
> Signed-off-by: Julien Grall <julien.gr...@citrix.com>

Acked-by: Ian Campbell <ian.campb...@citrix.com>


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to