diff mbox series

usb: dwc3: core: Add error log when core soft reset failed

Message ID 1652897572-14461-1-git-send-email-quic_mrana@quicinc.com
State New
Headers show
Series usb: dwc3: core: Add error log when core soft reset failed | expand

Commit Message

Mayank Rana May 18, 2022, 6:12 p.m. UTC
DWC3 controller soft reset is important operation for USB functionality.
In case when it fails, currently there is no failure log. Hence add
error log when core soft reset failed.

Signed-off-by: Mayank Rana <quic_mrana@quicinc.com>
---
 drivers/usb/dwc3/core.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index d28cd1a..8b87ff6 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -297,6 +297,7 @@  int dwc3_core_soft_reset(struct dwc3 *dwc)
 			udelay(1);
 	} while (--retries);
 
+	dev_warn(dwc->dev, "DWC3 controller soft reset failed.\n");
 	return -ETIMEDOUT;
 
 done: