> The OHCI driver only seems to want to actively unlink an URB if it's
> status is -EINPROGRESS.  The status of an interrupt URB in the completion
> handler is 0.  I've managed to get the USB sub-system to unlink the URB by
> setting status to -EINPROGRESS.  I know this is naughty but so far I
> haven't seen any problems with it.

In this case, that doesn't seem excessively naughty.  Async unlinking in
the completion handler SHOULD work, though it's not something that
has any sort of formal test.  (AFAIK -- it'd be great to see some formal
testing for the driver APIs, though that level of QA might seem rather
un-Linux-like.)

I'd not attempt such tricks outside the completion handler, though.
And it shouldn't really be necessary, either.  ISO will have the same
issue; in both cases, a fix seems like it'd need to formally introduce
the "URB on loan to driver" state.  (I wonder how the UHCIs deal
with that?)

- Dave



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

Reply via email to