aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/usb/dwc3/dwc3-omap.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2015-08-25 12:07:45 -0500
committerFelipe Balbi <balbi@ti.com>2015-09-14 09:51:58 -0500
commite2ae0692bf6f71c8b841889b655d0dc08413e4e3 (patch)
treec9c0e3490fab0576b3b84abee191032a88ba1445 /drivers/usb/dwc3/dwc3-omap.c
parentusb: gadget: fix possible regression introduced with ep->claimed (diff)
downloadwireguard-linux-e2ae0692bf6f71c8b841889b655d0dc08413e4e3.tar.xz
wireguard-linux-e2ae0692bf6f71c8b841889b655d0dc08413e4e3.zip
usb: dwc3: omap: enable irqs lately
If we enable IRQs before requesting our extcon device, we might fall into a situation where and IRQ fires before we're ready to handle it. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/dwc3-omap.c')
-rw-r--r--drivers/usb/dwc3/dwc3-omap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c
index a5a1b7c45743..22e9606d8e08 100644
--- a/drivers/usb/dwc3/dwc3-omap.c
+++ b/drivers/usb/dwc3/dwc3-omap.c
@@ -514,8 +514,6 @@ static int dwc3_omap_probe(struct platform_device *pdev)
goto err1;
}
- dwc3_omap_enable_irqs(omap);
-
ret = dwc3_omap_extcon_register(omap);
if (ret < 0)
goto err2;
@@ -526,6 +524,8 @@ static int dwc3_omap_probe(struct platform_device *pdev)
goto err3;
}
+ dwc3_omap_enable_irqs(omap);
+
return 0;
err3: