]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: add cancelled reasons for dwc3 requests
authorRay Chi <raychi@google.com>
Sat, 27 Mar 2021 18:17:42 +0000 (02:17 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Apr 2021 13:27:36 +0000 (15:27 +0200)
commit18ec55399a61d913a66dbbbf5d9c68fe202cc3c9
tree48f181afb4f7f84d4328e3da83eccfd3544a2daa
parent7088932861775afd5f8c46302c2e60ad28097777
usb: dwc3: add cancelled reasons for dwc3 requests

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_DISCONNECTED
  - DWC3_REQUEST_STATUS_DEQUEUED
  - DWC3_REQUEST_STATUS_STALLED

Reviewed-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: Ray Chi <raychi@google.com>
Link: https://lore.kernel.org/r/20210327181742.1810969-1-raychi@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c
drivers/usb/dwc3/gadget.h