On Thu, 8 Dec 2005, Siddharth Y V. wrote:

> Hi,
>  
> I am writing USB driver in slackware 10.2, i.e. 2.4.31 kernel. My USB
> device has 3 bulk endpoints. One bulk-out and 2 bulk-in. i am using
> devfs file system to create device node for this device. When i
> initially connect the device, everything works properly. But when i
> disconnect the device( when an application on this device node is open)
> suddenly and connect it again disconnect()function is called but probe()
> function is not called. I verified the code of releasing the resources
> in disconnect and close. i felt its proper.
> 
> One observation - If i don't fill and submit one particular URB ( for
> one particular endpoint.no 6) probe is called many times as u disconnect
> and connect. But if i submit this urb, probe is not called again. There
> are lots of memory allocation done in the callback function of this
> endpoint.no.6. I checked whether they are being released properly or
> not.  Can any one suggest some inputs regarding the above mentioned.

Maybe that URB messes up the device so that when you plug it back in, the 
device does not enumerate properly.  You should turn on USB debugging in 
the kernel configuration and see what the system log has to say.

Why are you doing new development under 2.4 instead of 2.6?  The USB stack 
in 2.6 is much superior to the older one.

Alan Stern



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to