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

Commit c8ede1ab authored by Rohith Kollalsi's avatar Rohith Kollalsi
Browse files

usb: gadget: Revert increase write buffer size



Commit 3fb31996 ("usb: gadget: increase write buffer size") brings
additional memory requirement and leads to memory allocation failure
when trying to allocate buffer to the request in usb_cser_alloc_req.
Hence revert it to fix this.

Change-Id: Iff5d6a2502d7ff094422fc66c20dff13d5b8d4ca
Signed-off-by: default avatarRohith Kollalsi <rkollals@codeaurora.org>
parent 3cbc58f5
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -57,11 +57,8 @@
#define BRIDGE_RX_QUEUE_SIZE	8
#define BRIDGE_RX_BUF_SIZE	2048
#define BRIDGE_TX_QUEUE_SIZE	8
#if IS_ENABLED(CONFIG_ARCH_SM8150)
#define BRIDGE_TX_BUF_SIZE  (50 * 1024)
#else
#define BRIDGE_TX_BUF_SIZE	2048
#endif

#define GS_LOG2_NOTIFY_INTERVAL		5  /* 1 << 5 == 32 msec */
#define GS_NOTIFY_MAXPACKET		10 /* notification + 2 bytes */