UPSTREAM: usb: dwc3: core: Add error log when core soft reset failed
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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Bug: 235863377 (cherry picked from commit 859bdc359567f5fa8e8dc780d7b5e53ea43d9ce9) Change-Id: I60500f66af47d93cf9d60bdecab32e6dc48d4b7c Signed-off-by: Mayank Rana <quic_mrana@quicinc.com>
This commit is contained in:
parent
435a42a0b4
commit
d03bf01b43
|
@ -296,6 +296,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:
|
||||
|
|
Loading…
Reference in New Issue