summaryrefslogtreecommitdiffstats
path: root/drivers/usb
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
parente4c1b1ba7f663fd77204201eef83baf58e2e5777 (diff)
downloadop-kernel-dev-e2ae0692bf6f71c8b841889b655d0dc08413e4e3.zip
op-kernel-dev-e2ae0692bf6f71c8b841889b655d0dc08413e4e3.tar.gz
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')
-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 a5a1b7c..22e9606 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:
OpenPOWER on IntegriCloud