UPSTREAM: usb: dwc3: omap: Mark the interrupt handler as shared
authorRoger Quadros <rogerq@ti.com>
Wed, 11 May 2016 14:36:43 +0000 (17:36 +0300)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
On OMAPs, OTG events come on the same IRQ so we need to share
this IRQ with the OTG device driver.

Change-Id: I04ad8896bdf7c698ea462cac547bc9fd9f5be423
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
(cherry picked from commit 12da8eae208d6f388c3aeecb91955c8b5a468654)

drivers/usb/dwc3/dwc3-omap.c

index 0142544d061fab1fbfe0bd10a602623c1591722c..bde69fc3fe77ecbecb5974d6ca9a6a4089e64a77 100644 (file)
@@ -517,7 +517,7 @@ static int dwc3_omap_probe(struct platform_device *pdev)
        reg = dwc3_omap_readl(omap->base, USBOTGSS_SYSCONFIG);
 
        ret = devm_request_threaded_irq(dev, omap->irq, dwc3_omap_interrupt,
-                                       dwc3_omap_interrupt_thread, 0,
+                                       dwc3_omap_interrupt_thread, IRQF_SHARED,
                                        "dwc3-omap", omap);
        if (ret) {
                dev_err(dev, "failed to request IRQ #%d --> %d\n",