On Sat, Dec 11, 2010 at 12:54:59PM +0800, Wu, Hao wrote: > >On Sat, Dec 11, 2010 at 12:40:44AM +0800, Hao Wu wrote: > >> This patch adds a unified otg_notify function to otg_transceiver data > >> structure. It is used for USB host/peripheral to notify otg related event > >> to otg_transceiver. > > > >Will this work for all OTG devices? > > This function will be more useful for OTG implementation which uses > host driver/transceiver driver/peripheral driver architecture. So, no other? > In that case, USB host/peripheral needs to notify otg events to > transceiver driver (depends on OTG implementation). So made it > A unified otg_notify member of otg_transceiver data seems to be a way > to share/reuse the same code in similar implementation. But no other hardware is like this today? > This is only a interface for USB host/peripheral notification, if it > is no needed for some driver, they can keep it with NULL. > > >Don't they already do something like this on a per-device basis? > > Not sure what's the per-device basis mentioned here. Could you provide > more information? Thanks in advance. Again, existing notifiers. thanks, greg k-h -- 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