On Fri, 18 May 2012, Greg Kroah-Hartman wrote: > Again, be specific, it looks like you want 2 different callbacks here, > right? Then make them: > int notify_connect(struct usb_phy *phy); > int notify_disconnect(struct usb_phy *phy); > that should be all that you need. Actually, it seems likely that this routine will get called whenever a connect-change event occurs. The client may not be immediately aware of whether the port is now connected or disconnected; it would be simpler to use the same routine in both cases and pass the current port status as an argument: notify_connect_change(struct usb_phy *phy, int connected); In order to handle multi-port PHYs, we might want to include a port number argument. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html