Skip to content

Commit

Permalink
usb: gadget: Allow larger configuration descriptors
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Robert Lukassen authored and Greg Kroah-Hartman committed May 20, 2010
1 parent ffb865b commit dd0543e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/composite.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit dd0543e

Please sign in to comment.