On Tue, 28 Mar 2006 [EMAIL PROTECTED] wrote: > Hi all, > > I have the following queries on the root hub functionality: > > How does khubd handle the following conditions? > > 1. When a device is connected and the port is disabled (i.e when the > portchange corresponds to USB_PORT_STAT_C_ENABLE)?
khubd treats it like an unplug followed by a replug. Drivers are notified that the device is done, and then the port is reset, the device is enumerated, etc. > 2. When an overcurrent condition occurs on a port, which has a device > connected (i.e. when the portchange corresponds to > USB_PORT_STAT_C_OVERCURRENT)? khubd clears the USB_PORT_C_OVERCURRENT feature and then turns on power to all the ports on the hub. You can read the source code yourself to find these answers. The relevant subroutine is hub_events() in drivers/usb/core/hub.c. Alan Stern ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel