Alan Stern wrote:
On Tue, 1 Jun 2004, Luca Risolia wrote:
On Tue, 1 Jun 2004 11:20:48 -0400 (EDT)
Alan Stern <[EMAIL PROTECTED]> wrote:
Actually, when the device is unplugged usbcore will unlink all its URBs
automatically.
Since the driver needs to run under linux > 2.4.20, do you
know whether this is the default behaviour with previous
versions of the kernel as well?
I don't think so. It's best for you to unlink the URBs yourself, even
when it's not strictly necessary. And bear in mind, when disconnect()
runs the device might still be plugged in, so even in 2.6 the core might
not have unlinked the URBs for you.
Alan Stern
Actually, I think in both cases the 2.6 code will guarantee that
pending urbs have been canceled and (more recently) completed
before disconnect() is called. Control traffic is an exception
though, at least to ep0.
But it's certainly true that to get portable drivers, disconnect()
must still be prepared to cancel all urbs and wait for their
completion.
- Dave
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel