Am Mittwoch, 4. Dezember 2002 11:29 schrieb Sylvain Meunier:
> Hi,
>
> I'm currently updating/re-writing a host driver for SL811 circuit
> for kernel 2.4. I've several questions about expected works of
> host driver :
>
> 1) Does synchrone unlink must call complete() callback ? If yes
> Is supposed it must call it before returning from unlink command ?
If usb_submit_urb() has succeeded, the completion must be called
under all circumstances. And it must be called before a synchronous
unlink returns, provided that the unlink succeeds.
> 2) What is the expected end of life of an urb ? Does is it until
> complete() call ? Until there is something else in status than
> -EINPROGRESS ?
Strictly speaking, it ends if it's freed. For 2.4 a host driver should
not touch the urb after changing the status. For 2.5 there's reference
counting.
> 3) Where/how/who uncompleted urbs are free during usb_disconnect() off
> a device (and then also then cleanup host driver) ? Is it the
> responsability of host driver to unlink all urbs attached to device
> during it's own hci_free_dev() ? Or is it the usbcore that do job
> indirectly ?
It's the job of the device drivers. They must unlink all urbs during
disconnect()
HTH
Oliver
-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET
comprehensive development tool, built to increase your
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel