From 36e3861bfdb04e371a73e3ff6bb7ef395a5d8da5 Mon Sep 17 00:00:00 2001 From: Manuel Lauss Date: Thu, 21 Jul 2011 11:53:57 +0200 Subject: [PATCH 1/3] MIPS: remove port limit in ioport_map Alchemy PCMCIA IO lies outside the 32bit address space and needs to be ioremapped to be accessible. The resultant address is then fed as IO-port base to all PCMCIA client drivers attached to a particular socket. pata_pcmcia does devm_ioport_map() on the port address, which returns errors because MIPS' ioport_map() implementation rejects incoming port addresses which are not within the 0..64k window. Other embedded architectures don't bother with a check like this; this patch brings MIPS in line and in turn makes pata_pcmcia work on all my Alchemy systems (and doesn't break PCI). Signed-off-by: Manuel Lauss --- arch/mips/lib/iomap.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/mips/lib/iomap.c b/arch/mips/lib/iomap.c index 9b31653f318c..dcd51ee2463b 100644 --- a/arch/mips/lib/iomap.c +++ b/arch/mips/lib/iomap.c @@ -211,9 +211,6 @@ static void __iomem *ioport_map_legacy(unsigned long port, unsigned int nr) void __iomem *ioport_map(unsigned long port, unsigned int nr) { - if (port > PIO_MASK) - return NULL; - return ioport_map_legacy(port, nr); } -- 2.15.1