[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 2/7] xen/arm: Retrieve the correct number of cells when building dom0 DT
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.grall@xxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |