diff options
author | Hemant Kumar <hemantk@codeaurora.org> | 2017-01-20 15:29:08 -0800 |
---|---|---|
committer | Hemant Kumar <hemantk@codeaurora.org> | 2017-01-20 15:47:53 -0800 |
commit | 9ff38a51450949e6b0160e0a4af0927f1d1ea679 (patch) | |
tree | 02de2923bbf3e227263fd3353012507ac499b509 /include/linux/usb | |
parent | 1f1d94408446043289fe0126897f98af2dce0ecd (diff) |
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>
Diffstat (limited to 'include/linux/usb')
-rw-r--r-- | include/linux/usb/composite.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h index bc5637ab01df..4cde40dac778 100644 --- a/include/linux/usb/composite.h +++ b/include/linux/usb/composite.h @@ -55,7 +55,7 @@ #define USB_GADGET_DELAYED_STATUS 0x7fff /* Impossibly large value */ /* 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) struct usb_configuration; |