summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/gadget.c
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2018-08-01 13:53:29 +0300
committerFelipe Balbi <felipe.balbi@linux.intel.com>2018-11-26 09:08:29 +0200
commitd5443bbf5fc8f8389cce146b1fc2987cdd229d12 (patch)
tree820ccda60260434a28c2f2b34e02f919a0f545f8 /drivers/usb/dwc3/gadget.c
parent7746a8dfb3f9c91b3a0b63a1d5c2664410e6498d (diff)
downloadlinux-d5443bbf5fc8f8389cce146b1fc2987cdd229d12.tar.gz
linux-d5443bbf5fc8f8389cce146b1fc2987cdd229d12.tar.bz2
linux-d5443bbf5fc8f8389cce146b1fc2987cdd229d12.zip
usb: dwc3: gadget: introduce cancelled_list
This list will host cancelled requests who still have TRBs being processed. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3/gadget.c')
-rw-r--r--drivers/usb/dwc3/gadget.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index 9728978070b7..17203944d77f 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -2284,6 +2284,7 @@ static int dwc3_gadget_init_endpoint(struct dwc3 *dwc, u8 epnum)
INIT_LIST_HEAD(&dep->pending_list);
INIT_LIST_HEAD(&dep->started_list);
+ INIT_LIST_HEAD(&dep->cancelled_list);
return 0;
}