summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/core.h
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2018-08-01 13:32:07 +0300
committerFelipe Balbi <felipe.balbi@linux.intel.com>2018-11-26 09:08:29 +0200
commit09fe1f8d7e2f461275b1cdd832f2cfa5e9be346d (patch)
tree0c9fc1be8a42ee207d79a4867947ec27c7a6da17 /drivers/usb/dwc3/core.h
parent1a22ec643580626f439c8583edafdcc73798f2fb (diff)
downloadlinux-09fe1f8d7e2f461275b1cdd832f2cfa5e9be346d.tar.gz
linux-09fe1f8d7e2f461275b1cdd832f2cfa5e9be346d.tar.bz2
linux-09fe1f8d7e2f461275b1cdd832f2cfa5e9be346d.zip
usb: dwc3: gadget: track number of TRBs per request
This will help us remove the wait_event() from our ->dequeue(). Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3/core.h')
-rw-r--r--drivers/usb/dwc3/core.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
index b89d31232028..8405519413a4 100644
--- a/drivers/usb/dwc3/core.h
+++ b/drivers/usb/dwc3/core.h
@@ -865,6 +865,7 @@ struct dwc3_hwparams {
* @epnum: endpoint number to which this request refers
* @trb: pointer to struct dwc3_trb
* @trb_dma: DMA address of @trb
+ * @num_trbs: number of TRBs used by this request
* @needs_extra_trb: true when request needs one extra TRB (either due to ZLP
* or unaligned OUT)
* @direction: IN or OUT direction flag
@@ -885,6 +886,8 @@ struct dwc3_request {
struct dwc3_trb *trb;
dma_addr_t trb_dma;
+ unsigned num_trbs;
+
unsigned needs_extra_trb:1;
unsigned direction:1;
unsigned mapped:1;