Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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