From patchwork Fri Jul 4 12:43:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haojian Zhuang X-Patchwork-Id: 33090 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5164020C88 for ; Fri, 4 Jul 2014 12:47:15 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id j17sf8246216oag.4 for ; Fri, 04 Jul 2014 05:47:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id:cc :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=FECMXFRyL72NPVkOtrIlf6XkSDLjdxdBXUwyJj0SyhI=; b=JhVQZ1Cq1vI8e7wF8uEUFOkk1KIT48SypqTe8oOL4hro0DLbicmJxpcHMtmpQZCDpi 13QIozwbO39OpKwmJFjJK6gziXxwLHREp9cFCDq+zh0S+C06s2+XOxZ7CGFYLnV/wW9v ljdWQlSHbldmTAzkKoaab4DmpaMMpja8euKbaVXTrF+QNWvxUZqDGYaeBxa7gJldZgiE Nxc4LzKDtu7cQ/5pGRJAOGjRhaxqP54Q9DcnGsRmliNo9vtl3tKr4OVf4fEEqOWb/Gzj 4VFcp+WLjZchMZ+/ED8kmlYgJcJkqXfvpSObGpxH00NV2XdKdUQuGn+k+K7E5Mo1L0j5 t73Q== X-Gm-Message-State: ALoCoQlqfa5lkJO81fEaVW9QmekF63W0Hj4sJivgiacR6iijKtLv/DYAbDQYXq5K+/+Po492LqjH X-Received: by 10.182.125.4 with SMTP id mm4mr5593161obb.49.1404478034848; Fri, 04 Jul 2014 05:47:14 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.98.225 with SMTP id o88ls854933qge.88.gmail; Fri, 04 Jul 2014 05:47:14 -0700 (PDT) X-Received: by 10.220.251.134 with SMTP id ms6mr9630007vcb.10.1404478034752; Fri, 04 Jul 2014 05:47:14 -0700 (PDT) Received: from mail-ve0-f179.google.com (mail-ve0-f179.google.com [209.85.128.179]) by mx.google.com with ESMTPS id ta7si8055192veb.78.2014.07.04.05.47.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 04 Jul 2014 05:47:14 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.179 as permitted sender) client-ip=209.85.128.179; Received: by mail-ve0-f179.google.com with SMTP id sa20so1630552veb.10 for ; Fri, 04 Jul 2014 05:47:14 -0700 (PDT) X-Received: by 10.220.249.6 with SMTP id mi6mr397887vcb.33.1404478034662; Fri, 04 Jul 2014 05:47:14 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp463783vcb; Fri, 4 Jul 2014 05:47:14 -0700 (PDT) X-Received: by 10.66.164.234 with SMTP id yt10mr10614087pab.65.1404478033248; Fri, 04 Jul 2014 05:47:13 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id p13si1929292pdn.318.2014.07.04.05.47.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Jul 2014 05:47:13 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1X32s8-00065e-Jq; Fri, 04 Jul 2014 12:45:48 +0000 Received: from mail-pa0-f47.google.com ([209.85.220.47]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X32s5-00063U-G2 for linux-arm-kernel@lists.infradead.org; Fri, 04 Jul 2014 12:45:47 +0000 Received: by mail-pa0-f47.google.com with SMTP id kq14so1967453pab.20 for ; Fri, 04 Jul 2014 05:45:24 -0700 (PDT) X-Received: by 10.68.235.6 with SMTP id ui6mr10566341pbc.45.1404477924230; Fri, 04 Jul 2014 05:45:24 -0700 (PDT) Received: from localhost.localdomain ([174.139.74.226]) by mx.google.com with ESMTPSA id ir10sm44131046pbc.59.2014.07.04.05.45.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 Jul 2014 05:45:23 -0700 (PDT) From: Haojian Zhuang To: linux-arm-kernel@lists.infradead.org, arnd@arndb.de, olof@lixom.net, khilman@kernel.org Subject: [PATCH] ARM: pxa: remove unnecessary pxa3xx io mapping Date: Fri, 4 Jul 2014 20:43:14 +0800 Message-Id: <1404477794-14927-1-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140704_054545_550173_1E45093B X-CRM114-Status: GOOD ( 11.77 ) X-Spam-Score: -2.8 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.220.47 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -2.1 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.220.47 listed in wl.mailspike.net] Cc: Haojian Zhuang X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: haojian.zhuang@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.179 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 [ 0.000000] BUG: mapping for 0x00000000 at 0xff000000 out of vmalloc space UNCACHED PHYS io mapping is redundant of PXA3xx (PXA930). So remove it from pxa3xx/pxa93x series. Signed-off-by: Haojian Zhuang --- arch/arm/mach-pxa/generic.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-pxa/generic.c b/arch/arm/mach-pxa/generic.c index 94f49c2..b52f8f2 100644 --- a/arch/arm/mach-pxa/generic.c +++ b/arch/arm/mach-pxa/generic.c @@ -83,7 +83,11 @@ static struct map_desc common_io_desc[] __initdata = { .pfn = __phys_to_pfn(0x40000000), .length = 0x02000000, .type = MT_DEVICE - }, { /* UNCACHED_PHYS_0 */ + } +}; + +static struct map_desc pxa2xx_io_desc[] __initdata = { + { /* UNCACHED_PHYS_0 */ .virtual = 0xff000000, .pfn = __phys_to_pfn(0x00000000), .length = 0x00100000, @@ -95,4 +99,6 @@ void __init pxa_map_io(void) { debug_ll_io_init(); iotable_init(ARRAY_AND_SIZE(common_io_desc)); + if (cpu_is_pxa2xx()) + iotable_init(ARRAY_AND_SIZE(pxa2xx_io_desc)); }