[PATCHES] move code for !STATIC_MAP to extra module

Russell King rmk+pcmcia at arm.linux.org.uk
Mon Nov 8 15:00:47 EST 2004


On Mon, Nov 08, 2004 at 09:14:29AM -0800, David Hinds wrote:
> On Mon, Nov 08, 2004 at 07:57:14AM +0000, Russell King wrote:
> > Also note that the resource problem you mention isn't the problem of
> > the PCMCIA core anymore - it's now up to the individual card drivers
> > themselves to claim resources using request_region and
> > request_mem_region.
> 
> I don't think it matters which party does the request_region() call;
> the resource allocator in the PCMCIA core still needs to do conflict
> avoidance for static mapped sockets.

No it doesn't.  There isn't a resource allocator for statically mapped
sockets.

The "two drivers accessing the same IO address" problem is solved purely
by the drivers doing the request_region() call and checking the return
value.  PCMCIA is no different in this respect on static sockets from an
ISA or PCI device plugged into a socket.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 PCMCIA      - http://pcmcia.arm.linux.org.uk/
                 2.6 Serial core



More information about the linux-pcmcia mailing list