On Fri, 8 Apr 2011 14:54:33 -0400 (EDT) Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote: > On Fri, 8 Apr 2011, Kristen Carlson Accardi wrote: > > > > Also, the patch assumes that ehci_threaded_irq will be called only in > > > response to interrupt events. That isn't (or at least, it isn't > > > supposed to be) true. There are places where usb_hcd_irq() is invoked > > > directly from other code. > > > > This is true, and the xhci driver wants to use it as a regular irq > > handler if MSI doesn't work for them. I suggest we leave usb_hcd_irq > > unmodified, and add a new irq handler usb_hcd_quickcheck_irq() to be > > used if we have threaded irq, and implement host ops to be: > > .irq (regular irq handler, no threaded irq available) > > .quickcheck_irq (just do the intr mask and nothing else_ > > .threaded_irq (the threaded irq that goes with the quickcheck irq) > > > > quickcheck and threaded irq would be called at interrupt time only, > > the other entry point should work as it did previously. You can > > probably share most code between the existing irq and the threaded_irq. > > Perhaps the existing irq and threaded_irq can even be the _same_. > After all, they need to do pretty much the same things. > > Alan Stern It worked for me to use the existing usb_hcd_irq as a threadfn, however with the quickcheck handler the way it is written now, you'd need to add the intr_enable to the end of usb_hcd_irq, and since it never masks the interrupts in the first place I'm not sure if that would cause any side effects. It is also probably true that we might have different locking requirements for a threadfn vs. a regular irq. > > -- > 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 -- 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