On Tue, 31 Oct 2006 [EMAIL PROTECTED] wrote: > I am running 2.6.18 on a gumstix (GS) board and am having problems > receiving hotplug notifications when a USB connection is established. > The host side appears to be working normally. However, the gadget > side - the GS side - does not seem to be working. > > I have written a simple hotplug script that is intended to be run > whenever a USB connection is established with the GS gadget. > > I confirmed that the /proc/sys/kernel/hotplug file contains > "/sbin/hotplug" and placed the script in /sbin/hotplug. The script > looks something like: > > if [ "$1" = "usb" ] > then > if [ "$ACTION" = "add" ] > then > # Do some things .... > fi > fi > ... > > Trouble is that the gadget-side kernel never calls the script when the > USB connection is established. Again, everything appears to work > fine on the host side. The problem is with the gadget side. > > Do I need to explicitly register for certain types of notifications? > Or is there some other administrative step that is required in order > to receive the hotplug notifications?
No and no. > Would greatly appreciate a couple of pointers here. The problem is that the kernel doesn't issue any notifications when a USB connection is established or dropped on a gadget. Probably the USB device controller drivers could be made to send these notifications, but right now none of them do. 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