Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7183658f authored by Hemant Kumar's avatar Hemant Kumar Committed by Mayank Rana
Browse files

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: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 1bab4f5e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;