Commit ed769520 authored by Joel Pepper's avatar Joel Pepper Committed by Felipe Balbi

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: default avatarJoel Pepper <joel.pepper@rwth-aachen.de>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 96bd39df
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
#define USB_GADGET_DELAYED_STATUS 0x7fff /* Impossibly large value */ #define USB_GADGET_DELAYED_STATUS 0x7fff /* Impossibly large value */
/* big enough to hold our biggest descriptor */ /* big enough to hold our biggest descriptor */
#define USB_COMP_EP0_BUFSIZ 1024 #define USB_COMP_EP0_BUFSIZ 4096
/* OS feature descriptor length <= 4kB */ /* OS feature descriptor length <= 4kB */
#define USB_COMP_EP0_OS_DESC_BUFSIZ 4096 #define USB_COMP_EP0_OS_DESC_BUFSIZ 4096
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment