Re: urb and ETIMEDOUT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 20 Feb 2012, Amit Nagal wrote:

> Hi ,
> 
> Documentation/usb/error-codes.txt  defines  -ETIMEDOUT as follows :
> 
> Synchronous USB message functions use this code to indicate timeout
> expired before the transfer completed,
> and no other error was reported by HC.
> 
> This definition applies to Syncronous USB functions like usb_control_msg() .
> 
> but how to indicate timeout or -ETIMEDOUT condition  for usb requests
> submitted via  asynchronous usb_submit_urb() call .
> if a usb driver submits urb via usb_submit_urb() call and wants to
> have some timeout for its completion ( say 5s and driver be notified
> with -ETIMEDOUT in urb completion callback  after a interval of 5
> seconds ) , is it possible with  asynchronous urb submission calls ?

No, it is not possible.  If a driver wants to do this, it has to set up 
its own timer and do everything itself.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux