Re: USBDUX problems (it works fine on 2.4 kernel but not on 2.6)

Actually, I've never noticed any problems with the high level usb functions.

 > 2.6.12 has changed the timeout parameter in usb_bulk_msg() and
 > usb_control_msg() to mean timeout in milliseconds instead of jiffies.
Seems to call for a define in usb.h in the comedi CVS.

/Bernd

www:    http://www.berndporr.me.uk/
         http://www.linux-usb-daq.co.uk/
Mobile: +44 (0)7840 340069
Work:   +44 (0)141 330 5237
         University of Glasgow
         Department of Electronics & Electrical Engineering
         Room 519, Rankine Building, Oakfield Avenue,
         Glasgow, G12 8LT


Frank Mori Hess wrote:
> On Thursday 19 May 2005 04:04 pm, Joel Chenu wrote:
> 
>>usb 1-2: lt-cmd timed out on ep4out
>>comedi0: could not transmit dux_command to the
>>usb-device, err=-110
> 
> 
> When I was developing some usb drivers on a 2.6.8 kernel I found the high 
> level synchronous usb functions like usb_bulk_msg() (which is used by the 
> usbdux driver) were rather buggy, and often produced these timeout 
> problems.  When I switched to only using the lower level functions like 
> usb_submit_urb, my problems went away.  As an aside, I'm noticing now 
> 2.6.12 has changed the timeout parameter in usb_bulk_msg() and 
> usb_control_msg() to mean timeout in milliseconds instead of jiffies.
> 

Received on 2005-05-20Z09:55:58