All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] USB: ohci-omap: defer probe if PHY is missing
@ 2017-01-02 20:53 Aaro Koskinen
       [not found] ` <20170102205355.18920-1-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Aaro Koskinen @ 2017-01-02 20:53 UTC (permalink / raw)
  To: Alan Stern, Greg Kroah-Hartman, Felipe Balbi, linux-usb,
	linux-omap, linux-kernel
  Cc: Aaro Koskinen

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>
---
 drivers/usb/host/ohci-omap.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/usb/host/ohci-omap.c b/drivers/usb/host/ohci-omap.c
index 495c145..fe6f6b5 100644
--- a/drivers/usb/host/ohci-omap.c
+++ b/drivers/usb/host/ohci-omap.c
@@ -230,8 +230,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;
 	}
-- 
2.9.2

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-01-04 17:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-02 20:53 [PATCH] USB: ohci-omap: defer probe if PHY is missing Aaro Koskinen
     [not found] ` <20170102205355.18920-1-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
2017-01-03 16:51   ` Greg Kroah-Hartman
2017-01-03 16:51     ` Greg Kroah-Hartman
2017-01-03 18:50     ` Aaro Koskinen
2017-01-03 19:05       ` Greg Kroah-Hartman
     [not found]         ` <20170103190504.GA10352-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2017-01-03 19:11           ` Felipe Balbi
2017-01-03 19:11             ` Felipe Balbi
2017-01-03 20:12           ` Aaro Koskinen
2017-01-03 20:12             ` Aaro Koskinen
2017-01-04 17:41             ` Tony Lindgren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.