netdev
[Top] [All Lists]

request_region and cardbus

To: "netdev@xxxxxxxxxxx" <netdev@xxxxxxxxxxx>
Subject: request_region and cardbus
From: Andrew Morton <andrewm@xxxxxxxxxx>
Date: Sun, 20 Aug 2000 20:45:59 +1000
Sender: owner-netdev@xxxxxxxxxxx
Could someone please explain how this works?

I've been told that for cardbus devices I shouldn't check the return value from 
request_region because the I/O space has already been claimed for the Cardbus 
socket.

As far as I can see I should:

- check the request_region return value for non-Cardbus devices

- ignore the request_region return value for Cardbus devices (but
  still do it because it gets registered in /proc/ioports)

- only call release_region if the corresponding request_region
  call succeeded.

Is this correct?

<Prev in Thread] Current Thread [Next in Thread>
  • request_region and cardbus, Andrew Morton <=