diff mbox series

usb: dwc3: don't print error message on probe defer

Message ID 20181115140930.28081-1-l.stach@pengutronix.de (mailing list archive)
State New, archived
Headers show
Series usb: dwc3: don't print error message on probe defer | expand

Commit Message

Lucas Stach Nov. 15, 2018, 2:09 p.m. UTC
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 mbox series

Patch

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;
 	}