From patchwork Tue Sep 13 06:32:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Barry Song X-Patchwork-Id: 4038 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id AC76E23EF6 for ; Tue, 13 Sep 2011 06:44:21 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id 8B37DA183AD for ; Tue, 13 Sep 2011 06:44:21 +0000 (UTC) Received: by fxe23 with SMTP id 23so359414fxe.11 for ; Mon, 12 Sep 2011 23:44:21 -0700 (PDT) Received: by 10.223.74.89 with SMTP id t25mr1009263faj.65.1315895741913; Mon, 12 Sep 2011 23:35:41 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.11.8 with SMTP id m8cs27938lab; Mon, 12 Sep 2011 23:35:41 -0700 (PDT) Received: by 10.216.229.88 with SMTP id g66mr448286weq.9.1315895741025; Mon, 12 Sep 2011 23:35:41 -0700 (PDT) Received: from cluster-d.mailcontrol.com (cluster-d.mailcontrol.com [85.115.60.190]) by mx.google.com with ESMTPS id t62si544374weq.141.2011.09.12.23.35.39 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Sep 2011 23:35:40 -0700 (PDT) Received-SPF: neutral (google.com: 85.115.60.190 is neither permitted nor denied by best guess record for domain of Barry.Song@csr.com) client-ip=85.115.60.190; Authentication-Results: mx.google.com; spf=neutral (google.com: 85.115.60.190 is neither permitted nor denied by best guess record for domain of Barry.Song@csr.com) smtp.mail=Barry.Song@csr.com Received: from rly21d.srv.mailcontrol.com (localhost.localdomain [127.0.0.1]) by rly21d.srv.mailcontrol.com (MailControl) with ESMTP id p8D6ZI8r016519; Tue, 13 Sep 2011 07:35:38 +0100 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by rly21d.srv.mailcontrol.com (MailControl) id p8D6YJt7011475; Tue, 13 Sep 2011 07:34:19 +0100 Received: from banasiexc02.ASIA.ROOT.PRI ([202.80.51.114]) by rly21d-eth0.srv.mailcontrol.com (envelope-sender ) (MIMEDefang) with ESMTP id p8D6YEGa010834 (TLS bits=128 verify=FAIL); Tue, 13 Sep 2011 07:34:19 +0100 (BST) Received: from SHAASIEXC01.ASIA.ROOT.PRI (10.125.12.84) by banasiexc02.ASIA.ROOT.PRI (10.190.12.22) with Microsoft SMTP Server (TLS) id 14.1.270.1; Tue, 13 Sep 2011 12:04:13 +0530 Received: from localhost.localdomain (10.125.36.59) by asimail.csr.com (10.125.12.88) with Microsoft SMTP Server (TLS) id 14.1.270.1; Tue, 13 Sep 2011 14:34:11 +0800 From: Barry Song To: CC: , , , Barry Song , Rob Herring , Shawn Guo , Arnd Bergmann Subject: [PATCH] ARM: CACHE-L2X0: filter start address can be 0 and is often 0 Date: Mon, 12 Sep 2011 23:32:53 -0700 Message-ID: <1315895573-30765-1-git-send-email-Baohua.Song@csr.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 X-Originating-IP: [10.125.36.59] X-Scanned-By: MailControl A-12-01-02 (www.mailcontrol.com) on 10.68.1.131 Cc: Rob Herring Cc: Shawn Guo Cc: Arnd Bergmann Signed-off-by: Barry Song Acked-by: Rob Herring --- arch/arm/mm/cache-l2x0.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c index a780448..0d85d22 100644 --- a/arch/arm/mm/cache-l2x0.c +++ b/arch/arm/mm/cache-l2x0.c @@ -437,7 +437,7 @@ static void __init pl310_of_setup(const struct device_node *np, of_property_read_u32_array(np, "arm,filter-ranges", filter, ARRAY_SIZE(filter)); - if (filter[0] && filter[1]) { + if (filter[1]) { writel_relaxed(ALIGN(filter[0] + filter[1], SZ_1M), l2x0_base + L2X0_ADDR_FILTER_END); writel_relaxed((filter[0] & ~(SZ_1M - 1)) | L2X0_ADDR_FILTER_EN,