Re: [Patch v3] usb: dwc3: add cancelled reasons for dwc3 requests

2021-03-27 Thread Greg KH
On Sat, Mar 27, 2021 at 09:22:02PM +0800, Ray Chi wrote: > Currently, when dwc3 handles request cancelled, dwc3 just returns > -ECONNRESET for all requests. It will cause USB function drivers > can't know if the requests are cancelled by other reasons. > > This patch will replace DWC3_REQUEST_STAT

[Patch v3] usb: dwc3: add cancelled reasons for dwc3 requests

2021-03-27 Thread Ray Chi
Currently, when dwc3 handles request cancelled, dwc3 just returns -ECONNRESET for all requests. It will cause USB function drivers can't know if the requests are cancelled by other reasons. This patch will replace DWC3_REQUEST_STATUS_CANCELLED with the reasons below. - DWC3_REQUEST_STATUS_DISCON