From patchwork Mon Oct 12 02:28:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: yalin wang X-Patchwork-Id: 7371931 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 657059F1D5 for ; Mon, 12 Oct 2015 02:30:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 85F32207D4 for ; Mon, 12 Oct 2015 02:30:47 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9DA9F207C0 for ; Mon, 12 Oct 2015 02:30:46 +0000 (UTC) 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 1ZlSrC-0001Xe-FV; Mon, 12 Oct 2015 02:28:58 +0000 Received: from mail-pa0-x241.google.com ([2607:f8b0:400e:c03::241]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZlSr8-0001Wo-Q4 for linux-arm-kernel@lists.infradead.org; Mon, 12 Oct 2015 02:28:57 +0000 Received: by pacik9 with SMTP id ik9so17492549pac.3 for ; Sun, 11 Oct 2015 19:28:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=3jS3liT4GXEp0NEPCFrv577kgIHtww6dKN5GUy+R6Bk=; b=gGCR2KMd1XRgyG1TYFMoI0Xw70Q0bPHSMjVN9WbgDUEoYnMln4ZCqKaStMedksqn42 oUbPv2hq0h+cSdJ7o3bbnYvVI82Jm20BCrxQ/O13gQB9g74a0oDEr0vMgJQlLa35dxy7 XQsfkr4P0WugBJAsOBSIXn+eDj9lLfHg/tRFApto5kvqmEjE1EBOiYQIIxLGe9GrtMCy mMF54hHjlZ8D4IKugYZDuBg5T9N9RLFee43zI7qy9l8U5uE4aBTjwMd1HdAOn4xFTasU tBxJ10zLI9iUhEsZbdqrZhE0Qcr8f+Yp+nG4GToLbhSf48kvEa/uuM3QSbiiIigofxpx Q/dQ== X-Received: by 10.68.194.73 with SMTP id hu9mr32214946pbc.146.1444616913648; Sun, 11 Oct 2015 19:28:33 -0700 (PDT) Received: from ubuntu.localdomain ([17.87.20.100]) by smtp.googlemail.com with ESMTPSA id kl11sm14919593pbd.67.2015.10.11.19.28.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 11 Oct 2015 19:28:33 -0700 (PDT) From: yalin wang To: catalin.marinas@arm.com, will.deacon@arm.com, mingo@kernel.org, toshi.kani@hp.com, mark.rutland@arm.com, michal.simek@xilinx.com, yalin.wang2010@gmail.com, treding@nvidia.com, andre.przywara@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [RFC] arm64: ioremap: add ioremap_cache macro Date: Mon, 12 Oct 2015 10:28:18 +0800 Message-Id: <1444616898-5057-1-git-send-email-yalin.wang2010@gmail.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151011_192854_914116_2284BE99 X-CRM114-Status: UNSURE ( 9.30 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.5 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add ioremap_cache macro, because some code will test if this macro is defined or not, and will generate a generric version if not defined, for example, memremap.c do like this. Signed-off-by: yalin wang --- arch/arm64/include/asm/io.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/include/asm/io.h b/arch/arm64/include/asm/io.h index 44be1e0..d6b620c 100644 --- a/arch/arm64/include/asm/io.h +++ b/arch/arm64/include/asm/io.h @@ -172,6 +172,7 @@ extern void __iomem *ioremap_cache(phys_addr_t phys_addr, size_t size); #define ioremap_wc(addr, size) __ioremap((addr), (size), __pgprot(PROT_NORMAL_NC)) #define ioremap_wt(addr, size) __ioremap((addr), (size), __pgprot(PROT_DEVICE_nGnRE)) #define iounmap __iounmap +#define ioremap_cache ioremap_cache /* * io{read,write}{16,32}be() macros