]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:22:20 +0000 (11:22 -0700)
commit71f530c0cbe1d180d527ef4dec4013e8bcee37c3
treefc3634f108df9d82d54cf7f17c132c8902f9607b
parentf7055d7153c523b65848e08ed7f8f27071d03730
powerpc: Fix ioremap_flags() with book3e pte definition

commit 55052eeca6d71d76f7c3f156c0501814d8e5e6d3 upstream.

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>
Cc: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/powerpc/mm/pgtable_32.c
arch/powerpc/mm/pgtable_64.c