lkml.org 
[lkml]   [2015]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] arm64: ioremap: add ioremap_cache macro
On Tue, Oct 13, 2015 at 03:23:27PM +0100, Will Deacon wrote:
> On Tue, Oct 13, 2015 at 03:10:55PM +0100, Catalin Marinas wrote:
> > On Mon, Oct 12, 2015 at 10:28:18AM +0800, yalin wang wrote:
> > > 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 <yalin.wang2010@gmail.com>
> > > ---
> > > 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
> >
> > Applied. Thanks.
>
> I'm not sure we want this. See:
>
> https://lkml.org/lkml/2015/10/9/699

Thanks Will and Arnd, I missed this. Patch reverted.

--
Catalin


\
 
 \ /
  Last update: 2015-10-13 17:41    [W:0.058 / U:1.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site