Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Joel Pepper and committed by
Felipe Balbi
a665140e 05645366

+1 -1
+1 -1
include/linux/usb/composite.h
··· 52 52 #define USB_GADGET_DELAYED_STATUS 0x7fff /* Impossibly large value */ 53 53 54 54 /* big enough to hold our biggest descriptor */ 55 - #define USB_COMP_EP0_BUFSIZ 1024 55 + #define USB_COMP_EP0_BUFSIZ 4096 56 56 57 57 /* OS feature descriptor length <= 4kB */ 58 58 #define USB_COMP_EP0_OS_DESC_BUFSIZ 4096