linux-mips
[Top] [All Lists]

Re: [PATCH] MIPS: remove port limit in ioport_map

To: Manuel Lauss <manuel.lauss@googlemail.com>
Subject: Re: [PATCH] MIPS: remove port limit in ioport_map
From: Ralf Baechle <ralf@linux-mips.org>
Date: Fri, 4 Nov 2011 17:43:19 +0000
Cc: Linux-MIPS <linux-mips@linux-mips.org>
In-reply-to: <1320418191-22096-1-git-send-email-manuel.lauss@googlemail.com>
References: <1320418191-22096-1-git-send-email-manuel.lauss@googlemail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.21 (2010-09-15)
On Fri, Nov 04, 2011 at 03:49:51PM +0100, Manuel Lauss wrote:

> Alchemy PCMCIA IO lies outside the 32bit address space and needs to
> be ioremapped to be accessible.  The resulting 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).

The reason for this had something to do with multiple PCI busses with
devices using I/O ports but I forgot what it was :).  Need to think about
this one.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>