On Wed, 26 Apr 2006, usb usb wrote:

> Alan,
> 
> Sorry for posting again. I would really appreciate if
> you could comment on my doubts - Thanks! 

Sorry, I've been busy...

> > It is right.  When the reset fails, the core adds a
> > request to 
> > re-register the device onto a queue.  The requests
> > to register the other 
> > devices are already on the queue, so they get acted
> > on first.
> 
> The thing that bothers me is, my failed device (one
> that I reset) wasn't re-registered at all, but other
> devices after it were registered. 

It should have been re-registered unless it did something peculiar, like 
disconnecting itself electrically from the bus.

Can you post another dmesg log showing what happens?  Also, if you haven't 
already done so, make sure that CONFIG_USB_DEBUG is turned on.

> Sorry, if I wasn't clear.. Say, I have a working
> device and somehow it fails after a while. To make it
> work, I have to reset this device to re-configure and
> start it - right? 

Yes.

> I'm not familiar with re-initialization. I appreciate
> if you could give me some pointers.

Initialization is what your driver does to the device in order to put it
into a useful working state.  Some devices don't need any initialization
because they are usable right away, with no extra settings.

Probing is what your driver does in order to figure out whether it can 
manage the device at all.  Assuming it can, probing generally includes 
initialization.

If you reset a device then your probe routine doesn't need to be called 
again, since you already know that your driver is able to manage the 
device.  But since the device has been reset, you do need to go through 
the initialization procedure again.

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