]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Revert "MIPS: page.h: Provide more readable definition for PAGE_MASK."
authorRalf Baechle <ralf@linux-mips.org>
Mon, 22 Apr 2013 15:57:54 +0000 (17:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Apr 2013 19:51:25 +0000 (12:51 -0700)
commit65dcded2f1e5582e8f0fe6ef315b2274270a6302
tree7a369d65d9bc5d2d9b26deafb23b551e402e7739
parent7a5324f9edf0e920c99ed90872e1baeaf04acbc1
Revert "MIPS: page.h: Provide more readable definition for PAGE_MASK."

commit 3b5e50edaf500f392f4a372296afc0b99ffa7e70 upstream.

This reverts commit c17a6554782ad531f4713b33fd6339ba67ef6391.

Manuel Lauss writes:

lmo commit c17a6554 (MIPS: page.h: Provide more readable definition for
PAGE_MASK) apparently breaks ioremap of 36-bit addresses on my Alchemy
systems (PCI and PCMCIA) The reason is that in arch/mips/mm/ioremap.c
line 157  (phys_addr &= PAGE_MASK) bits 32-35 are cut off.  Seems the
new PAGE_MASK is explicitly 32bit, or one could make it signed instead
of unsigned long.

From: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/include/asm/page.h