diff options
author | Felipe Balbi <balbi@ti.com> | 2015-08-25 13:07:45 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-09-14 10:51:58 -0400 |
commit | e2ae0692bf6f71c8b841889b655d0dc08413e4e3 (patch) | |
tree | c9c0e3490fab0576b3b84abee191032a88ba1445 /drivers/usb/dwc3/dwc3-omap.c | |
parent | e4c1b1ba7f663fd77204201eef83baf58e2e5777 (diff) |
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.c | 4 |
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) | |||
514 | goto err1; | 514 | goto err1; |
515 | } | 515 | } |
516 | 516 | ||
517 | dwc3_omap_enable_irqs(omap); | ||
518 | |||
519 | ret = dwc3_omap_extcon_register(omap); | 517 | ret = dwc3_omap_extcon_register(omap); |
520 | if (ret < 0) | 518 | if (ret < 0) |
521 | goto err2; | 519 | goto err2; |
@@ -526,6 +524,8 @@ static int dwc3_omap_probe(struct platform_device *pdev) | |||
526 | goto err3; | 524 | goto err3; |
527 | } | 525 | } |
528 | 526 | ||
527 | dwc3_omap_enable_irqs(omap); | ||
528 | |||
529 | return 0; | 529 | return 0; |
530 | 530 | ||
531 | err3: | 531 | err3: |