]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sh: Fix up legacy PTEA space attribute mapping.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 11 Jan 2011 06:02:59 +0000 (15:02 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 23:14:24 +0000 (15:14 -0800)
commit3033aa7eb6f36ffa6d16ae643b1b1002cabfa764
tree0e0971c84367cb2827d991d553b6ed350122545c
parentf0a32b09fd401b485efc89bdc2a92fb477759786
sh: Fix up legacy PTEA space attribute mapping.

commit efb3e34b6176d30c4fe8635fa8e1beb6280cc2cd upstream.

When p3_ioremap() was converted to ioremap_prot() there was some breakage
introduced where the 29-bit segmentation logic would trap the area range
and return an identity mapping without having allowed the area
specification to force mapping through page tables. This wires up a PCC
mask for pgprot verification to work out whether to short-circuit the
identity mapping on legacy parts, restoring the previous behaviour.

Reported-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/sh/include/asm/io.h
arch/sh/include/asm/pgtable_32.h