]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
USB: ohci-omap: defer probe if PHY is missing
authorAaro Koskinen <aaro.koskinen@iki.fi>
Mon, 2 Jan 2017 20:53:55 +0000 (22:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Jan 2017 16:00:41 +0000 (17:00 +0100)
Defer probe if PHY is missing. E.g. on Nokia 770 several modules needs
to be loaded to get the PHY going and ohci-omap should wait for those.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-omap.c

index b08e385399b9e4144d85da2d469ccc089d956a5d..a4d814b7f3806668362de8e04ba913fe98ff2b8e 100644 (file)
@@ -227,8 +227,7 @@ static int ohci_omap_reset(struct usb_hcd *hcd)
                                return status;
                        }
                } else {
-                       dev_err(hcd->self.controller, "can't find phy\n");
-                       return -ENODEV;
+                       return -EPROBE_DEFER;
                }
                ohci->start_hnp = start_hnp;
        }