usb: dwc3: dwc3-omap: return PROBE_DEFER if extcon is missing and found in dt
authorGeorge Cherian <george.cherian@ti.com>
Wed, 25 Sep 2013 06:29:43 +0000 (11:59 +0530)
committerFelipe Balbi <balbi@ti.com>
Tue, 26 Nov 2013 16:35:15 +0000 (10:35 -0600)
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>
drivers/usb/dwc3/dwc3-omap.c

index 7f7ea62e961b54c48516f40c79bba7a8c3fb9102..daab0ad10b25c32a5d30d406b53df5a3d256185e 100644 (file)
@@ -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;
                }
 
This page took 0.026281 seconds and 5 git commands to generate.