usb: musb: Use shared irq
authorAlexandre Bailon <abailon@baylibre.com>
Mon, 17 Apr 2017 04:21:16 +0000 (23:21 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Apr 2017 14:48:26 +0000 (16:48 +0200)
In the DA8xx, USB and CPPI 4.1 are sharing the same interrupt line.
Update the driver to request a shared irq.

Signed-off-by: Alexandre Bailon <abailon@baylibre.com>
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_core.c

index 0c3664a..870da18 100644 (file)
@@ -2332,7 +2332,7 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl)
        setup_timer(&musb->otg_timer, musb_otg_timer_func, (unsigned long) musb);
 
        /* attach to the IRQ */
-       if (request_irq(nIrq, musb->isr, 0, dev_name(dev), musb)) {
+       if (request_irq(nIrq, musb->isr, IRQF_SHARED, dev_name(dev), musb)) {
                dev_err(dev, "request_irq %d failed!\n", nIrq);
                status = -ENODEV;
                goto fail3;