Hi, The OTG driver would consist of 3 kernel modules , Host driver module, Device driver module, and OTG transceiver driver module.
We have a SPH(Single Port Host) ARC Controller. Since each of these modules have IRQ handlers and are requested to USB IRQ with SH_IRQ and SA_INTERRUPT flags , we have the following doubt . Once the OTG driver decides upon the role (host or device) , it is to pass control to that driver. Suppose the role is of host, the OTG driver would set the fields in otg_transceiver structure. But how exactly does the OTG driver invoke the host controller driver or device controller driver.? Should we were to load all three modules at the same time. Or Is it that the OTG module be loaded first , determine the role and then call the module_intialization function of the host/device controller drivers respectively, which will subsequently call driver_register and register the drivers. Our doubt is that if all 3 modules are loaded simultaneously. after role switching only one driver should be active(for example device controller driver). but we have the IRQ handler already registered for the other driver(i.e the host controller driver) . So while receiving interrupts.. all handlers get invoked..... rt? Please explain how should we load the drivers in case of OTG. We are studying OMAP implementation. but donot how exaclty the modules get loaded , in which order . Thanks Rak ------------------------------------------------------- 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&kid0709&bid&3057&dat1642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel