lkml.org 
[lkml]   [2016]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] MIPS: io.h: Define `ioremap_cache'
Signed-off-by: Maciej W. Rozycki <macro@imgtec.com>
---
Ralf,

Please try and push it ASAP, with 4.5 if possible. This should be an
obviously correct internal API consistency fix, along the lines of the
recent `ioremap_uc' addition. NB, there's a fallback `ioremap_cache'
implementation in kernel/memremap.c redirecting to plain `ioremap', but I
think we should simply do the right thing rather than relying on that
code.

Thanks,

Maciej

linux-mips-ioremap-cache.diff
Index: linux-sfr-test/arch/mips/include/asm/io.h
===================================================================
--- linux-sfr-test.orig/arch/mips/include/asm/io.h 2015-10-07 19:33:20.000000000 +0100
+++ linux-sfr-test/arch/mips/include/asm/io.h 2016-01-09 01:32:14.432587000 +0000
@@ -275,6 +275,7 @@ static inline void __iomem * __ioremap_m
*/
#define ioremap_cachable(offset, size) \
__ioremap_mode((offset), (size), _page_cachable_default)
+#define ioremap_cache ioremap_cachable

/*
* These two are MIPS specific ioremap variant. ioremap_cacheable_cow
\
 
 \ /
  Last update: 2016-01-09 03:21    [W:0.306 / U:0.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site