usb: composite: Increase ep0 buffer size to 4KB
Maximum QMI packet size is 4KB. As a result with current ep0 buffer size of 1KB driver is overstepping the buffer memory when QMI packet of more than 1KB size is received from usb host. Change-Id: Id162ed23dfa855fd7e11d43b32627b577c0c2dd4 Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
This commit is contained in:
parent
1f1d944084
commit
9ff38a5145
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@
|
||||||
#define USB_GADGET_DELAYED_STATUS 0x7fff /* Impossibly large value */
|
#define USB_GADGET_DELAYED_STATUS 0x7fff /* Impossibly large value */
|
||||||
|
|
||||||
/* big enough to hold our biggest descriptor */
|
/* big enough to hold our biggest descriptor */
|
||||||
#define USB_COMP_EP0_BUFSIZ 1024
|
#define USB_COMP_EP0_BUFSIZ 4096
|
||||||
|
|
||||||
#define USB_MS_TO_HS_INTERVAL(x) (ilog2((x * 1000 / 125)) + 1)
|
#define USB_MS_TO_HS_INTERVAL(x) (ilog2((x * 1000 / 125)) + 1)
|
||||||
struct usb_configuration;
|
struct usb_configuration;
|
||||||
|
|
Loading…
Add table
Reference in a new issue