Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: dwc3: don't log probe deferrals; but do log other error codes

It's not very useful to repeat a bunch of probe deferral errors. And
it's also not very useful to log "failed" without telling the error
code.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>

authored by

Brian Norris and committed by
Felipe Balbi
408d3ba0 1808bd21

+2 -1
+2 -1
drivers/usb/dwc3/core.c
··· 1486 1486 1487 1487 ret = dwc3_core_init(dwc); 1488 1488 if (ret) { 1489 - dev_err(dev, "failed to initialize core\n"); 1489 + if (ret != -EPROBE_DEFER) 1490 + dev_err(dev, "failed to initialize core: %d\n", ret); 1490 1491 goto err4; 1491 1492 } 1492 1493