On Wed, 26 Apr 2006, usb usb wrote:

> Alan,
> 
> That was really useful - thanks! 
> 
> I was confused by the term re-initialization - I
> thought that there is another macro/function in USB
> core that does it :-(
> 
> I will group and finish my other tasks before
> rebooting my box (after re-compiling kernel), and I
> will post the logs as soon as I can.
> 
> One more thing:
> > But unless you call it (probe) under exactly the
> same 
> > conditions as the USB core would, you're liable to 
> > run into trouble.
> 
> You said I can call probe() from my driver, but
> exactly  
> under the same conditions as the USB core. What's the
> significance of this? It says in the source that the
> path remains constant, unless the devices are
> physically re-cabled. Since I deal exclusively with
> 2.0 devices, and I'm resetting devices (without
> physically moving them), I shouldn't have to worry
> about it - right?

The main things you have to worry about are acquiring the lock for both
the USB device structure and the interface structure, and making sure your
driver is ready to be re-probed.

On the other hand, you could take a different approach to this whole 
problem...  You could try to find out why the device is so flaky and get 
it fixed!  Then no resets would be needed.

> Sorry, if I'm irritating by asking too many questions.
> I just want to understand this fully as soon as I can.

That's fine; I don't mind answering intelligent questions.  :-)

Alan Stern



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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