[PATCH] MIPS: io.h: Define `ioremap_cache'

From: Maciej W. Rozycki
Date: Fri Jan 08 2016 - 21:07:11 EST


Signed-off-by: Maciej W. Rozycki <macro@xxxxxxxxxx>
---
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