Skip to contentSkip to conversation

usbtty: adapt buffers for large packet support

PATCH New Vipin Kumar 2 participants 2 messages Dec 17, 2012 – Dec 18, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usbtty: adapt buffers for large packet support

From: Shiraz Hashim <[email protected]>

Increase buffer sizes at driver and tty level to accommodate kermit large packet support.

---
 drivers/serial/usbtty.c | 2 +-
 include/usbdevice.h     | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)
drivers/serial/usbtty.c +1 -1
index e47cb9a..148d1a6 100644
@@ -63,7 +63,7 @@
 /*
  * Buffers to hold input and output data
  */
-#define USBTTY_BUFFER_SIZE 256
+#define USBTTY_BUFFER_SIZE 2048
 static circbuf_t usbtty_input;
 static circbuf_t usbtty_output;
 
include/usbdevice.h +3 -1
index 3edaf8b..7037efd 100644
@@ -475,7 +475,9 @@ typedef struct urb_link {
  * function driver to inform it that data has arrived.
  */
 
-#define URB_BUF_SIZE 128 /* in linux we'd malloc this, but in u-boot we prefer static data */
+/* in linux we'd malloc this, but in u-boot we prefer static data */
+#define URB_BUF_SIZE 512
+
 struct urb {
 
 	struct usb_endpoint_instance *endpoint;
Signature · 1 line
1.8.0
Applied
#1 lore raw

PATCH 1/1 usbtty: adapt buffers for large packet support

Dear Vipin Kumar,

Quoted 6 lines

From: Shiraz Hashim <[email protected]>

Increase buffer sizes at driver and tty level to accommodate kermit large packet support.

Applied, thanks.

Best regards,
Marek Vasut