On Wed, 24 Jun 2009 10:05:56 +0800 David Brownell <david-b@xxxxxxxxxxx> wrote: > > + switch (action) { > > + case USB_DEVICE_ADD: > > + pr_debug("Notify OTG HNP add device\n"); > > ... just what it is about this hardware which makes it need a new > notification scheme that other OTG hosts have not needed. > > Device add/remove is basically stuff that I'd expect to find in > the EHCI root hub code. > > David, I can not find a way to hook in to EHCI root hub, or do you mean core/hub.c? You mean I need to install a callback there for every time when a device added or removed? I guess the notification way even cleaner than that way? After reviewing the code, we only need USB_DEVICE_ADD and USB_DEVICE_REMOVE now, no need for USB_HNP stuff. Thanks, Alek -- 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