On Thu, 22 Feb 2007, sigint wrote: > Hello, > > > > > > > I have a doubt regarding usb_reset_dev call. In > > its > > > man page, it says, > > > > > > > > and the device's probe () > > > routine will be called *automatically* by khubd? > > > > This part is meaningless, since devices don't have > > probe() routines. > > I meant the probe routine of the driver of the device > connected there. > > Hub0-->USB0 > -->USB1-->My_device > > If I reset USB1, I am talking about the probe of > My_device device.
I assume that USB1 is meant to be a hub. If you reset USB1 then My_device will be reset, re-enumerated, and re-probed. The same thing will happen if you reset My_device and the reset fails. > > 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. > > In that case, if reset is a success nothing will > happen to the device? (I mean, will the device be > reinumerated again). The device will be reset! That's different from nothing happening to it. The device's old address, configuration, and altsettings will be restored. Drivers that were bound to it will remain bound. > If I want to fail the reset > intentionally, how can I do that? I wasn't able to > find it from the source code. Unplugging the device is about the only way you can make a reset fail. However the device itself can make the reset fail, by changing its IDs for example. 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