Skip to content

Commit

Permalink
usb: dwc3: dwc3-omap: return PROBE_DEFER if extcon is missing and fou…
Browse files Browse the repository at this point in the history
…nd in dt

Due to inter dependencies of I2C and extcon by the time dwc3
checks for extcon device its not registered especially in case of J6.
In O5 the vbus regulator save us from getting to this point.
So for tiime being return PROBE_DEFER if extcon is enabled in dt.

Signed-off-by: George Cherian <george.cherian@ti.com>
  • Loading branch information
George Cherian authored and Felipe Balbi committed Nov 26, 2013
1 parent 2df6761 commit e0a6104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/dwc3/dwc3-omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ static int dwc3_omap_probe(struct platform_device *pdev)
edev = of_extcon_get_extcon_dev(dev, 0);
if (IS_ERR(edev)) {
dev_vdbg(dev, "couldn't get extcon device\n");
ret = PTR_ERR(edev);
ret = -EPROBE_DEFER;
goto err2;
}

Expand Down

0 comments on commit e0a6104

Please sign in to comment.