summaryrefslogtreecommitdiff
path: root/include/linux/usb/composite.h
diff options
context:
space:
mode:
authorJoel Pepper <joel.pepper@rwth-aachen.de>2018-04-26 21:26:08 +0300
committerFelipe Balbi <felipe.balbi@linux.intel.com>2018-04-27 10:17:10 +0300
commited769520727edbf526e0f510e6c501fc6ba3824a (patch)
treefaea6a0bf2b19c28322f823f8d6e6444eb07128f /include/linux/usb/composite.h
parent96bd39df29c29d348d65311e5954c0b7d3a2a790 (diff)
downloadlinux-ed769520727edbf526e0f510e6c501fc6ba3824a.tar.xz
usb: gadget: composite Allow for larger configuration descriptors
The composite framework allows us to create gadgets composed from many different functions, which need to fit into a single configuration descriptor. Some functions (like uvc) can produce configuration descriptors upwards of 2500 bytes on their own. This patch increases the limit from 1024 bytes to 4096. Signed-off-by: Joel Pepper <joel.pepper@rwth-aachen.de> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'include/linux/usb/composite.h')
-rw-r--r--include/linux/usb/composite.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h
index 4b6b9283fa7b..8675e145ea8b 100644
--- a/include/linux/usb/composite.h
+++ b/include/linux/usb/composite.h
@@ -52,7 +52,7 @@
#define USB_GADGET_DELAYED_STATUS 0x7fff /* Impossibly large value */
/* big enough to hold our biggest descriptor */
-#define USB_COMP_EP0_BUFSIZ 1024
+#define USB_COMP_EP0_BUFSIZ 4096
/* OS feature descriptor length <= 4kB */
#define USB_COMP_EP0_OS_DESC_BUFSIZ 4096