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.st...@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;
        }
 
-- 
2.19.1

Reply via email to