powerpc: Fix ioremap_flags() with book3e pte definition
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 7 Apr 2010 04:39:36 +0000 (14:39 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 7 Apr 2010 04:39:47 +0000 (14:39 +1000)
commit55052eeca6d71d76f7c3f156c0501814d8e5e6d3
tree7a13664cc8c99ffbad425dbc0eefd4ccceb70b8a
parentf467bc148d05a1465211102804858df9c667f8b9
powerpc: Fix ioremap_flags() with book3e pte definition

We can't just clear the user read permission in book3e pte, because
that will also clear supervisor read permission.  This surely isn't
desired.  Fix the problem by adding the supervisor read back.

BenH: Slightly simplified the ifdef and applied to ppc64 too

Signed-off-by: Li Yang <leoli@freescale.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/pgtable_32.c
arch/powerpc/mm/pgtable_64.c