From: Ian Campbell Subject: Re: [PATCH V1 03/29] xen/dts: Don't check the number of address and size cells in process_cpu_node Date: Fri, 6 Sep 2013 17:24:14 +0100 Message-ID: <1378484654.14745.156.camel@kazak.uk.xensource.com> References: <1377701263-3319-1-git-send-email-julien.grall@linaro.org> <1377701263-3319-4-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1377701263-3319-4-git-send-email-julien.grall@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: stefano.stabellini@eu.citrix.com, patches@linaro.org, andrii.anisov@globallogic.com, xen-devel@lists.xen.org, andre.przywara@linaro.org, baozich@gmail.com List-Id: xen-devel@lists.xenproject.org On Wed, 2013-08-28 at 15:47 +0100, Julien Grall wrote: > CPU nodes are not required to have #address-cells == 1 and #size-cells == 0, so > don't check for that (see Linux Documentation/devicetree/booting-without-of.txt > Section III.5.a). > > In some OMAP5 device, tree, these 2 properties are not correctly set. Therefore, > Xen will only able to handle 1 CPU. > > Signed-off-by: Julien Grall Acked-by: Ian Campbell > CC: andrii.anisov@globallogic.com > CC: baozich@gmail.com > > --- > Changes in v2: > - Update commit message > --- > xen/common/device_tree.c | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/xen/common/device_tree.c b/xen/common/device_tree.c > index 3a3c99c..c4f0f2c 100644 > --- a/xen/common/device_tree.c > +++ b/xen/common/device_tree.c > @@ -414,12 +414,6 @@ static void __init process_cpu_node(const void *fdt, int node, > const u32 *cell; > paddr_t start, size; > > - if ( address_cells != 1 || size_cells != 0 ) > - { > - early_printk("fdt: node `%s': invalid #address-cells or #size-cells", > - name); > - return; > - } > > prop = fdt_get_property(fdt, node, "reg", NULL); > if ( !prop )