All of lore.kernel.org
 help / color / mirror / Atom feed
* usb: dwc3: don't print error message on probe defer
@ 2018-11-15 14:09 Lucas Stach
  0 siblings, 0 replies; only message in thread
From: Lucas Stach @ 2018-11-15 14:09 UTC (permalink / raw)
  To: Felipe Balbi; +Cc: Greg Kroah-Hartman, linux-usb, kernel, patchwork-lst

dwc3_core_init() is requesting the PHYs, which may probe later than the
USB host controller. This is a normal system operation state and thus
should not print an error message into the logs.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 drivers/usb/dwc3/core.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index becfbb87f791..48fc59cdbff7 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -1482,7 +1482,8 @@ static int dwc3_probe(struct platform_device *pdev)
 
 	ret = dwc3_core_init(dwc);
 	if (ret) {
-		dev_err(dev, "failed to initialize core\n");
+		if (ret != -EPROBE_DEFER)
+			dev_err(dev, "failed to initialize core\n");
 		goto err4;
 	}
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-11-15 14:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-15 14:09 usb: dwc3: don't print error message on probe defer Lucas Stach

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.