]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
usb: gadget: Allow larger configuration descriptors
authorRobert Lukassen <Robert.Lukassen@tomtom.com>
Tue, 30 Mar 2010 12:14:01 +0000 (14:14 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 20 May 2010 20:21:36 +0000 (13:21 -0700)
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 <robert.lukassen@tomtom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/composite.c

index 09289bb1e20fcf984b388b32f55a6c404cc1dcb3..5465d8767f9ad2ea6e9285a7af8f9bf9ce25ba8b 100644 (file)
@@ -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;