On Wed, 21 Feb 2007, sigint wrote:

> Hello,
> 
> I have a doubt regarding usb_reset_dev call. In its
> man page, it says,
> 
> =====
> Do a port reset, reassign the device's address, and
> establish its former operating configuration. If the
> reset fails, or the device's descriptors change from
> their values before the reset, or the original
> configuration and altsettings cannot be restored, a
> flag will be set telling khubd to pretend the device
> has been disconnected and then re-connected. All
> drivers will be unbound, and the device will be
> re-enumerated and probed all over again.
> =====
> 
> Does it mean:
> If port reset fails, the particular device will be
> logically disconnected, drivers connected to that
> device will be unbound

Up to here, yes, this will happen.

> and the device's probe ()
> routine will be called *automatically* by khubd?

This part is meaningless, since devices don't have probe() routines.

Assuming the device is still connected to the USB bus, khubd will detect 
it and will enumerate it all over again.  A default configuration will be 
selected and drivers for the interfaces in that configuration will be 
probed.  All exactly the same as if the device had been unplugged and then 
plugged back in.

Alan Stern


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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