]> 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 22:47:06 +0000 (14:47 -0800)
commit955b7457cf4d69ce9264d11e49bea1a260a41adb
tree552bded2fd9cfd289aae0f5e45239943fb32d3fd
parente5c89fb9004c17bde4c80450bd0307c65ad302d8
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