On Fri, Mar 15, 2002, David Brownell <[EMAIL PROTECTED]> wrote:
> Maksim Krasnyanskiy <[EMAIL PROTECTED]> asks:
> 
> > HCD and USB core do not unlink URBs on device disconnect because currently 
> > it is driver's responsibility.
> 
> Not entirely true.  OHCI tries to safeguard against broken drivers,
> and in 2.5 anything using the new HCD code in usbcore does the
> same safeguarding.  (Such as EHCI ...)  The UHCI drivers may do
> things differently.

They'd have to be particularly broken then. The HCD's will only get the
disconnect callback if the reference count is 0, and that only happens
when all of the URB's are unlinked.

> > Is it valid to assume that if disconnect method is running completion 
> > handler for bulk transfers will be called
> > _only_ as a result of usb_unlink_urb ? 
> 
> As above.  Drivers with disconnect() methods that don't kill all their
> outstanding URBs are buggy, in any case.

Absolutely.

JE


_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to