On Thu, 22 Sep 2005, Patrick Hilt wrote: > > > So I am looking for a way to periodically > > > re-enumerate the USB bus under software control from the Linux side. > > > > One way to do it, although a pretty drastic way, is to rmmod the host > > controller driver module and then modprobe it. > > I thought about that. However, the kernel I am using 2.4.22 (uclinux) > does not like that. So I am looking for some function to call or ioctl > to send that would trigger re-enumeration.
There shouldn't be any problem with rmmod and modprobe. If there is, it means that something else is wrong. Is it possible for you to use a kernel later than 2.4.22? That's quite old by now. There is no function or ioctl to trigger re-enumeration. Maybe you can find a solution on the other side, though. Set up the peripheral board so that when it is ready for use, it drops its connection to the USB bus for a few hundred millseconds or more. You don't even need to drop the power connection; just remove the pull-up resistor from the data line. Alan Stern ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
