From patchwork Fri Aug 2 16:56:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leif Lindholm X-Patchwork-Id: 18739 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f69.google.com (mail-vb0-f69.google.com [209.85.212.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E748825E07 for ; Fri, 2 Aug 2013 16:50:34 +0000 (UTC) Received: by mail-vb0-f69.google.com with SMTP id e13sf1038482vbg.8 for ; Fri, 02 Aug 2013 09:50:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-removed-original-auth :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-google-group-id:list-post:list-help :list-archive:list-unsubscribe; bh=aTPCgyQlMExkFsnisM+d7Ew+mlEUM1KtyEP/3wGRrTk=; b=ChWIqMPdnXsMm4J8owKrYggxIauRTsJxK9aTp++QWGBuk65+PSw7ug7SHkdkMsG34E 2Pd9sGpsG5mW1fE3zWfICcWvQyuO7r9KOjhB4NjmTGVCjtkPoA7x2MLjB6c7I/+K+wk/ SZ6JoMh1M+m77fADnRMRYeHlxB0PnI63A5uyhTM33D4/GrEVdy5wWL7rwrvQP26bn6js njRXOflbobMaSfEhwE0pLAtfdDM+ayl9VdEL/vXgveaRHTu5+0FuZlL+lZ/bRx5Ow709 oFquH3oxKaA9MoscJQbOHOsyNixu/baMPdcUMkT53bKG6oFBzyjxb5sWVxhgKzgxU3XR Qfvg== X-Received: by 10.236.135.66 with SMTP id t42mr3099932yhi.36.1375462234703; Fri, 02 Aug 2013 09:50:34 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.25.132 with SMTP id c4ls1683375qeg.86.gmail; Fri, 02 Aug 2013 09:50:34 -0700 (PDT) X-Received: by 10.221.20.1 with SMTP id qm1mr2288129vcb.48.1375462234600; Fri, 02 Aug 2013 09:50:34 -0700 (PDT) Received: from mail-vb0-f48.google.com (mail-vb0-f48.google.com [209.85.212.48]) by mx.google.com with ESMTPS id sj10si2059185vdc.105.2013.08.02.09.50.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 02 Aug 2013 09:50:34 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.48 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.48; Received: by mail-vb0-f48.google.com with SMTP id w16so847092vbf.35 for ; Fri, 02 Aug 2013 09:50:34 -0700 (PDT) X-Received: by 10.58.6.210 with SMTP id d18mr2214264vea.96.1375462234491; Fri, 02 Aug 2013 09:50:34 -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.221.11.8 with SMTP id pc8csp366256vcb; Fri, 2 Aug 2013 09:50:33 -0700 (PDT) X-Received: by 10.194.76.68 with SMTP id i4mr5585825wjw.50.1375462233463; Fri, 02 Aug 2013 09:50:33 -0700 (PDT) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx.google.com with ESMTPS id s14si4639520wjw.82.2013.08.02.09.50.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 02 Aug 2013 09:50:33 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.172 is neither permitted nor denied by best guess record for domain of leif.lindholm@linaro.org) client-ip=209.85.212.172; Received: by mail-wi0-f172.google.com with SMTP id hj13so769880wib.17 for ; Fri, 02 Aug 2013 09:50:33 -0700 (PDT) X-Received: by 10.194.122.103 with SMTP id lr7mr5631121wjb.15.1375462232950; Fri, 02 Aug 2013 09:50:32 -0700 (PDT) Received: from mohikan.mushroom.smurfnet.nu (cpc4-cmbg17-2-0-cust71.5-4.cable.virginmedia.com. [86.14.224.72]) by mx.google.com with ESMTPSA id n2sm4440502wiz.4.2013.08.02.09.50.31 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 02 Aug 2013 09:50:32 -0700 (PDT) From: Leif Lindholm To: linux-efi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org, matt.fleming@intel.com, tony.luck@gmail.com, patches@linaro.org, Leif Lindholm Subject: [PATCH v2 1/5] ia64: add early_memremap() alias for early_ioremap() Date: Fri, 2 Aug 2013 17:56:18 +0100 Message-Id: <1375462582-16423-2-git-send-email-leif.lindholm@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1375462582-16423-1-git-send-email-leif.lindholm@linaro.org> References: <1375462582-16423-1-git-send-email-leif.lindholm@linaro.org> X-Gm-Message-State: ALoCoQlacoJzCXDYSXHYnFsoK7LqkzYkjmAGTz9GMdvIJRRhNI61iBGZN9C4HD5Hor5MR2b2p7qg X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: leif.lindholm@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.48 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: , early_ioremap() on IA64 chooses its mapping type based on the EFI memory map. This patch adds an alias "early_memremap()" to be used where the targeted location is memory rather than an i/o device. Signed-off-by: Leif Lindholm Acked-by: Tony Luck --- arch/ia64/include/asm/io.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/ia64/include/asm/io.h b/arch/ia64/include/asm/io.h index 74a7cc3..0d2bcb3 100644 --- a/arch/ia64/include/asm/io.h +++ b/arch/ia64/include/asm/io.h @@ -424,6 +424,7 @@ extern void __iomem * ioremap(unsigned long offset, unsigned long size); extern void __iomem * ioremap_nocache (unsigned long offset, unsigned long size); extern void iounmap (volatile void __iomem *addr); extern void __iomem * early_ioremap (unsigned long phys_addr, unsigned long size); +#define early_memremap(phys_addr, size) early_ioremap(phys_addr, size) extern void early_iounmap (volatile void __iomem *addr, unsigned long size); static inline void __iomem * ioremap_cache (unsigned long phys_addr, unsigned long size) {