Re: [PATCH v3] powerpc/iommu/ddw: Fix endianness

2014-10-02 Thread Anton Blanchard
d_u32_array to byte swap and avoid the need for a > number of be32_to_cpu calls. > > Cc: sta...@vger.kernel.org # v3.13 > Cc: Benjamin Herrenschmidt > Reviewed-by: Anton Blanchard > [aik: folded Anton's patch with of_property_read_u32_array] > Signed-off-by: Alexe

Re: [PATCH] dtc: Sort unit addresses by number

2014-01-24 Thread Anton Blanchard
Hi Mark, > Minor issue, but when #address-cells == 2, some unit addresses are > split in the middle by a ',' to separate the value of each cell, e.g. > "flash@2,0". For those, is_hex will return false and we'll compare > unit-addresses as strings. > > I took a quick look over the dts in the Linu

[PATCH] dtc: Sort unit addresses by number

2014-01-20 Thread Anton Blanchard
,POWER7@8f0 { And the CPU layout is as expected: node 0 cpus: 0-47 node 0 size: 32633 MB node 1 cpus: 48-95 node 1 size: 32631 MB Signed-off-by: Anton Blanchard -- Index: b/livetree.c === --- a/livetree.c +++ b/livetree.c