diff options
| author | Jack Pham <jackp@codeaurora.org> | 2015-04-20 22:49:35 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:06:36 -0700 |
| commit | f0487e67e5e62f1b4b6a2061896a62742a19d54b (patch) | |
| tree | c443ce4a7cba8737a5d6e8495e9f6a2c6479cf93 /include/linux/usb/composite.h | |
| parent | 88ffd6eb9530fa8c9e51ed4ea2411795a83dc2de (diff) | |
usb: dwc3: Adjust TX FIFO allocation
Optimize the dwc3_gadget_resize_tx_fifos() function to better
allocate the per-endpoint FIFOs depending on a number of factors:
- super- or non-super speed
- bulk/isoc with bursting
- reduced RAM (when QDSS uses some internal RAM)
- endpoint enabled in composition
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Diffstat (limited to 'include/linux/usb/composite.h')
| -rw-r--r-- | include/linux/usb/composite.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h index acecf5fa6a63..bc5637ab01df 100644 --- a/include/linux/usb/composite.h +++ b/include/linux/usb/composite.h @@ -336,6 +336,10 @@ struct usb_configuration { unsigned highspeed:1; unsigned fullspeed:1; struct usb_function *interface[MAX_CONFIG_INTERFACES]; + + /* number of in and out eps used in this configuration */ + int num_ineps_used; + int num_outeps_used; }; int usb_add_config(struct usb_composite_dev *, |
