Configuration:
Distribution:Linux Fedora Core 2
Kernel:2.6.7
Problem occured also with the RedHat 7.3 distribution (kernel 2.4.18)
HCD:uhci_hcd
Hi,
I'm writing an USB driver for a specific device.
If I terminate an IO (a read on a BULK or an interrupt pipe) by calling
usb_unlink_urb()
then I submit another URB, I miss some data. With an USB analyser, I can
see a packet that is missed.
The driver IO completion call-back will never be called until the device
send other data.
Any Idea ?
In my driver I don't use the usb_bulk_msg() function because I implement
some specific features.
I had a look to the usb_bulk_msg() source code to check the way that the
timeout is managed. I noticed that when
the timeout is elapsed, usb_unlink_urb() is used to terminate the IO
request.
So, when usb_bulk_msg() terminates in timeout, the above probleme occured
(I have tested).
The problem occured by reading a BULK or an interupt pipe. So try with a
mouse it's easy to reproduce.
Is it a bug or did I misunderstand something in the USB API ?
I'm looking for my OHCI controller. I didn't find yet but, if need it, I
will be able to make some tests on an OHCI controller.
Thanks in advance for your help.
Regards.
Thierry
--------------------------------------------------------------------------------------------------------------
Thierry Chantry
LotSys
5-7, rue Salomon de Rothshild
92156 Suresnes
Tel: +(33) 1 41 44 39 55 Fax: +(33) 1 41 44 39 39
--------------------------------------------------------------------------------------------------------------
******************************************************************************
Ce message et les pieces jointes associees sont confidentiels et a l'attention
exclusive des destinataires. Si vous avez recu ce message par erreur, merci
d'avertir l'administrateur de la messagerie: [EMAIL PROTECTED]
This email and files transmitted with it are confidential and intended solely
for the use of the individual to whom they are addressed. If you have received
this email in error, please notify the system manager: [EMAIL PROTECTED]
******************************************************************************
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel