mirror of
https://github.com/torvalds/linux
synced 2024-10-05 02:44:13 +00:00
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>
This commit is contained in:
parent
e4c1b1ba7f
commit
e2ae0692bf
|
@ -514,8 +514,6 @@ static int dwc3_omap_probe(struct platform_device *pdev)
|
||||||
goto err1;
|
goto err1;
|
||||||
}
|
}
|
||||||
|
|
||||||
dwc3_omap_enable_irqs(omap);
|
|
||||||
|
|
||||||
ret = dwc3_omap_extcon_register(omap);
|
ret = dwc3_omap_extcon_register(omap);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto err2;
|
goto err2;
|
||||||
|
@ -526,6 +524,8 @@ static int dwc3_omap_probe(struct platform_device *pdev)
|
||||||
goto err3;
|
goto err3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dwc3_omap_enable_irqs(omap);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
err3:
|
err3:
|
||||||
|
|
Loading…
Reference in a new issue