[<prev] [next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.00.1601090127240.5958@tp.orcam.me.uk>
Date: Sat, 9 Jan 2016 02:05:31 +0000
From: "Maciej W. Rozycki" <macro@...tec.com>
To: Ralf Baechle <ralf@...ux-mips.org>
CC: Brian Norris <computersforpeace@...il.com>,
Rafał Miłecki <zajec5@...il.com>,
<linux-mips@...ux-mips.org>, <linux-kernel@...r.kernel.org>
Subject: [PATCH] MIPS: io.h: Define `ioremap_cache'
Signed-off-by: Maciej W. Rozycki <macro@...tec.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
Powered by blists - more mailing lists