Re: [PATCH] usb: dwc3: add cancelled reason for dwc3 requests

2021-03-25 Thread Thinh Nguyen
Felipe Balbi wrote: > Hi, > > Ray Chi writes: >> diff --git a/drivers/usb/dwc3/gadget.h b/drivers/usb/dwc3/gadget.h >> index 0cd281949970..a23e85bd3933 100644 >> --- a/drivers/usb/dwc3/gadget.h >> +++ b/drivers/usb/dwc3/gadget.h >> @@ -56,6 +56,12 @@ struct dwc3; >> >> /* Frame/Microframe Numb

Re: [PATCH] usb: dwc3: add cancelled reason for dwc3 requests

2021-03-25 Thread Thinh Nguyen
Hi Ray, Ray Chi wrote: > Currently, when dwc3 handles request cancelled, dwc3 just returns > -ECONNRESET for all requests. It will cause USB class drivers can't class drivers -> gadget driver or function driver. > know if the requests are cancelled by other reasons. > > This patch will add the

Re: [PATCH] usb: dwc3: add cancelled reason for dwc3 requests

2021-03-25 Thread Felipe Balbi
Hi, Ray Chi writes: > diff --git a/drivers/usb/dwc3/gadget.h b/drivers/usb/dwc3/gadget.h > index 0cd281949970..a23e85bd3933 100644 > --- a/drivers/usb/dwc3/gadget.h > +++ b/drivers/usb/dwc3/gadget.h > @@ -56,6 +56,12 @@ struct dwc3; > > /* Frame/Microframe Number Mask */ > #define DWC3_FRNUMB

[PATCH] usb: dwc3: add cancelled reason for dwc3 requests

2021-03-25 Thread Ray Chi
Currently, when dwc3 handles request cancelled, dwc3 just returns -ECONNRESET for all requests. It will cause USB class drivers can't know if the requests are cancelled by other reasons. This patch will add the reason when the requests are cancelled. Signed-off-by: Ray Chi --- drivers/usb/dwc3/