[POWERPC] bootwrapper: dt_xlate_range() bugfixes
authorScott Wood <scottwood@freescale.com>
Mon, 20 Aug 2007 17:39:46 +0000 (03:39 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 22 Aug 2007 05:21:48 +0000 (15:21 +1000)
commit0602801c22ea1767cd0298b11da140bd5cb764d2
tree323d76381d007b23b2b60d9865a15193e83c2d7b
parent643d3c139b0a5289d7f0ba19fdcb24be6d7e768f
[POWERPC] bootwrapper: dt_xlate_range() bugfixes

1. The check whether ranges fits in the buffer was using elements rather
than bytes.
2. Empty ranges were not properly treated as transparent, and missing
ranges were treated as transparent.
3. The loop terminated when translating from the root rather than to.  Once
bug #2 was fixed, it failed due to a missing ranges in the root node.
4. In decoding the ranges property, the #size-cells used was that of
the parent, not the child.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/boot/devtree.c