From: Greg Ungerer <gerg@xxxxxxxxxxx> The ColdFire MMU has separate read and write bits, unlike the m68k MMU's which have a single read-only bit. We need to make sure we have the read and write bits in the page table entry for ioremapped pages for ColdFire targets. Signed-off-by: Greg Ungerer <gerg@xxxxxxxxxxx> Acked-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> Acked-by: Matt Waddel <mwaddel@xxxxxxxxx> Acked-by: Kurt Mahan <kmahan@xxxxxxxxxxxx> --- arch/m68k/mm/kmap.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/m68k/mm/kmap.c b/arch/m68k/mm/kmap.c index 6934584..4d08f98 100644 --- a/arch/m68k/mm/kmap.c +++ b/arch/m68k/mm/kmap.c @@ -172,6 +172,10 @@ void __iomem *__ioremap(unsigned long physaddr, unsigned long size, int cachefla } } else { physaddr |= (_PAGE_PRESENT | _PAGE_ACCESSED | _PAGE_DIRTY); +#ifdef CONFIG_COLDFIRE + /* ColdFire has separate read/write bits, not on by default */ + physaddr |= _PAGE_READWRITE; +#endif switch (cacheflag) { case IOMAP_NOCACHE_SER: case IOMAP_NOCACHE_NONSER: -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-m68k" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html