Skip to content

Commit

Permalink
usb: dwc3: omap: enable irqs lately
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felipe Balbi committed Sep 14, 2015
1 parent e4c1b1b commit e2ae069
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/dwc3/dwc3-omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -526,6 +524,8 @@ static int dwc3_omap_probe(struct platform_device *pdev)
goto err3;
}

dwc3_omap_enable_irqs(omap);

return 0;

err3:
Expand Down

0 comments on commit e2ae069

Please sign in to comment.