>From my point of view, SA_SHIRQ should be ok for the 3 modules. Modules IRQ handler can get the current OTG controller mode.
For example, in Host IRQ handler, it will get the mode. If the mode is Host, the handler should deal with the Host mode IRQ event. If the mode is Device, the handler should return IRQ_NONE and let the UDC module IRQ handler to deal with the IRQ event. And the IRQ handler can read the IRQ status to determine the interrupt source. Bryan Wu -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sujith Sankar Sent: Thursday, April 27, 2006 5:02 PM To: Li Yang-r58472 Cc: linux usb devel Subject: Re: [linux-usb-devel] USB OTG ISR Registration If shared handlers were used, how did you mask the interrupts while servicing? If SA_SHIRQ is used, isn't it the responsibility of ISR to mask the interrupts at the starting, service the received interrupt and unmask the interrupts before returning? Or were you using SA_SHIRQ | SA_INTERRUPT? If that is the case, Linux would do the masking, rt? -suj On 27/04/06, Li Yang-r58472 <[EMAIL PROTECTED]> wrote: > Actually we had done a driver for ARC OTG controller, which is still not very stable. We used shared interrupt handlers. > > Best Regards, > Leo > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Sujith > > Sankar > > Sent: Thursday, April 27, 2006 4:47 PM > > To: linux usb devel > > Subject: [linux-usb-devel] USB OTG ISR Registration > > > > Hi All, > > > > Our team is implementing a USB OTG Controller Driver in Linux for ARC > > controller. The transceiver and OTG controller are integrated. > > > > We have the following doubt. > > > > 1.) The implementation involves three modules viz EHCI driver, UDC > > driver and OTG Controller driver. Shouldn't the ISR's of these three > > modules be registered as shared interrupts since the three use the > > same controller? > > > > Pls let me know your thoughts. > > > > Thanks, > > Suj > > > > > > ------------------------------------------------------- > > 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-devel@lists.sourceforge.net > > To unsubscribe, use the last form field at: > > https://lists.sourceforge.net/lists/listinfo/linux-usb-devel > ------------------------------------------------------- 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=k&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 ------------------------------------------------------- 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