From patchwork Fri Aug 16 21:05:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 19251 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f199.google.com (mail-ye0-f199.google.com [209.85.213.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 27CFE248E6 for ; Fri, 16 Aug 2013 21:06:12 +0000 (UTC) Received: by mail-ye0-f199.google.com with SMTP id l13sf297296yen.6 for ; Fri, 16 Aug 2013 14:06:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=er8VH7DNbtCoTeDqg+6ceX+hekS0YJKnTR80DE72t9g=; b=Mx4RQuwhCf5aJ0ZcmQjUSHPp2Ap7q/ILgbtzqW7KdXOlX3JhvTsizQkXIqfhxxyOWu 3Qu05IIIyzXtE7g/a+oYPFFkkna+hHgKkIoPueFqqaloLBozmAdZu8SSJ29ebZxrY5xn qWekuRCvhd8gYvQ8jVjn9dglcvmyLWuQ7qiOM6noDkJZYNRRl4SXDP0X/hNjheBaPsgq br5XVqOzk4KZAE6OHuq8GZAAZyf1FWacqI2slFC4J/LyCnL8YtrWwOzpbxM1uZNR+Dws J7NXX7XAaYfn9oV9+qSPpV6uz2fG0dfgcOhyDjhxgmdpGVTPBwMZwXsXimxBMG0aAjKh BS/w== X-Received: by 10.236.68.2 with SMTP id k2mr1257201yhd.16.1376687171848; Fri, 16 Aug 2013 14:06:11 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.53.103 with SMTP id a7ls871477qep.90.gmail; Fri, 16 Aug 2013 14:06:11 -0700 (PDT) X-Received: by 10.220.164.202 with SMTP id f10mr2177233vcy.25.1376687171712; Fri, 16 Aug 2013 14:06:11 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id st7si777108vec.87.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 16 Aug 2013 14:06:11 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id id13so1768770vcb.4 for ; Fri, 16 Aug 2013 14:06:11 -0700 (PDT) X-Gm-Message-State: ALoCoQn4vp4X3Xp4smGUQWKqJ+zUYziI70kU2hUGwSerV8FpS0mICgGJ4Bi0vGczTYkKT6aGdBRq X-Received: by 10.58.137.167 with SMTP id qj7mr2837894veb.1.1376687171625; Fri, 16 Aug 2013 14:06:11 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp89435vcz; Fri, 16 Aug 2013 14:06:11 -0700 (PDT) X-Received: by 10.180.36.195 with SMTP id s3mr526679wij.56.1376687170741; Fri, 16 Aug 2013 14:06:10 -0700 (PDT) Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by mx.google.com with ESMTPS id ef5si245965wic.16.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 16 Aug 2013 14:06:10 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.180 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=209.85.212.180; Received: by mail-wi0-f180.google.com with SMTP id f14so1238826wiw.1 for ; Fri, 16 Aug 2013 14:06:10 -0700 (PDT) X-Received: by 10.180.13.43 with SMTP id e11mr624024wic.21.1376687170207; Fri, 16 Aug 2013 14:06:10 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id b13sm797327wic.9.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 16 Aug 2013 14:06:09 -0700 (PDT) From: Julien Grall To: stefano.stabellini@eu.citrix.com, ian.campbell@citrix.com Cc: patches@linaro.org, andre.przywara@linaro.org, xen-devel@lists.xen.org, Julien Grall , andrii.anisov@globallogic.com, baozich@gmail.com Subject: [RFC 03/24] xen/dts: Don't check the number of address and size cells in process_cpu_node Date: Fri, 16 Aug 2013 22:05:35 +0100 Message-Id: <1376687156-6737-4-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1376687156-6737-1-git-send-email-julien.grall@linaro.org> References: <1376687156-6737-1-git-send-email-julien.grall@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The properties #address-cells and #size-cells is not required in /cpus node in the device tree (see Linux Documentation/devicetree/booting-without-of.txt Section III.5.a). In the OMAP5 device tree, these 2 properties are not defined. Therefore, Xen will only able to handle 1 CPU. Signed-off-by: Julien Grall CC: andrii.anisov@globallogic.com CC: baozich@gmail.com Acked-by: Chen Baozi --- 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 84d704d..51f23eb 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 )