浏览代码

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 <robert.lukassen@tomtom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Robert Lukassen 15 年之前
父节点
当前提交
dd0543ecc6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/usb/gadget/composite.c

+ 1 - 1
drivers/usb/gadget/composite.c

@@ -36,7 +36,7 @@
  */
  */
 
 
 /* big enough to hold our biggest descriptor */
 /* big enough to hold our biggest descriptor */
-#define USB_BUFSIZ	512
+#define USB_BUFSIZ	1024
 
 
 static struct usb_composite_driver *composite;
 static struct usb_composite_driver *composite;