All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] usb: dwc3: core: Add error log when core soft reset failed
@ 2022-05-18 18:12 Mayank Rana
  0 siblings, 0 replies; only message in thread
From: Mayank Rana @ 2022-05-18 18:12 UTC (permalink / raw)
  To: peter.chen, balbi, gregkh
  Cc: linux-kernel, linux-usb, Thinh.Nguyen, quic_wcheng, quic_jackp,
	Mayank Rana

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 --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:
-- 
2.7.4


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

only message in thread, other threads:[~2022-05-18 18:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-18 18:12 [PATCH] usb: dwc3: core: Add error log when core soft reset failed Mayank Rana

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.