From: Robert Lukassen Date: Tue, 30 Mar 2010 12:14:01 +0000 (+0200) Subject: usb: gadget: Allow larger configuration descriptors X-Git-Tag: v2.6.35-rc1~471^2~161 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=dd0543ecc638947d67bdd3a8a41b95ed3c7b885e;p=~emulex%2Finfiniband.git usb: gadget: Allow larger configuration descriptors The composite framework allows gadgets with more than one function. This can lead to situations where the configuration descriptor is larger than the maximum of 512 bytes currently allowed by the composite framework. This patch proposes to double that limit to 1024. Signed-off-by: Robert Lukassen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index 09289bb1e20..5465d8767f9 100644 --- a/drivers/usb/gadget/composite.c +++ b/drivers/usb/gadget/composite.c @@ -36,7 +36,7 @@ */ /* big enough to hold our biggest descriptor */ -#define USB_BUFSIZ 512 +#define USB_BUFSIZ 1024 static struct usb_composite_driver *composite;