From patchwork Wed Aug 28 14:47:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 19566 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 23FDA25E58 for ; Wed, 28 Aug 2013 14:48:07 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id c41sf7121501yho.10 for ; Wed, 28 Aug 2013 07:48:06 -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=FJn8+65vE+U1vr3k1F40rZxnzI/dD3G7OkSyuiBF7fk=; b=GAHh6pV8VW3H59ZWHnpdBNz0W2j5Uj2HwRZA7Y6h9nvcmsxS5UoYe0GyH0jwgtGye0 EyQA5mPx68fDMDOdCVXX519H7BNifk4Ht2nJcD6xzRSpAvYaV/l4SK6VNheMNTxUhrs8 hdO60BrtHoSC2zkgCnCMaQPUjLcPEvYa/PmqqhKmSkCw15DoDRvi/QlI2fmZAdt0xFLF 1R5Leon7S/jLtKq3pEsS+Ik3kdaBVnpWmY9zmKxe3nWRStzIhh/L/NIjmUigQ13lNc45 AziYJNp4mrSCRrQV6HdG/28Stmw8kEWt/DMq+gkrftBPKzgYTFl/41cB9f78ZOw0oMc/ L3fQ== X-Received: by 10.236.2.5 with SMTP id 5mr9845821yhe.23.1377701286773; Wed, 28 Aug 2013 07:48:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.12.166 with SMTP id z6ls390174qeb.18.gmail; Wed, 28 Aug 2013 07:48:06 -0700 (PDT) X-Received: by 10.220.145.132 with SMTP id d4mr25933564vcv.9.1377701286598; Wed, 28 Aug 2013 07:48:06 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id sk7si6601764vdc.103.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 Aug 2013 07:48:06 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.175 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.175; Received: by mail-vc0-f175.google.com with SMTP id ia10so4056386vcb.6 for ; Wed, 28 Aug 2013 07:48:06 -0700 (PDT) X-Gm-Message-State: ALoCoQneVHsqK9JLj/OfBhAAevQF384948Y0wZjT94CgGOfrG3ZEGqBXky3wUaqpa5JCxUNCb3ix X-Received: by 10.221.51.206 with SMTP id vj14mr26109911vcb.17.1377701286506; Wed, 28 Aug 2013 07:48:06 -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 u4csp359931vcz; Wed, 28 Aug 2013 07:48:06 -0700 (PDT) X-Received: by 10.194.7.41 with SMTP id g9mr1390679wja.83.1377701285470; Wed, 28 Aug 2013 07:48:05 -0700 (PDT) Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) by mx.google.com with ESMTPS id bv3si9493401wjc.166.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 Aug 2013 07:48:05 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.174 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=209.85.212.174; Received: by mail-wi0-f174.google.com with SMTP id c10so2739902wiw.1 for ; Wed, 28 Aug 2013 07:48:04 -0700 (PDT) X-Received: by 10.194.201.131 with SMTP id ka3mr20227938wjc.22.1377701284922; Wed, 28 Aug 2013 07:48:04 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id a8sm5590498wie.6.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 Aug 2013 07:48:04 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Cc: stefano.stabellini@eu.citrix.com, ian.campbell@citrix.com, patches@linaro.org, andre.przywara@linaro.org, Julien Grall , andrii.anisov@globallogic.com, baozich@gmail.com Subject: [PATCH V1 03/29] xen/dts: Don't check the number of address and size cells in process_cpu_node Date: Wed, 28 Aug 2013 15:47:17 +0100 Message-Id: <1377701263-3319-4-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1377701263-3319-1-git-send-email-julien.grall@linaro.org> References: <1377701263-3319-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.175 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: , 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 CC: andrii.anisov@globallogic.com CC: baozich@gmail.com Acked-by: Ian Campbell --- 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 )