Commit b2caefbb3344ff5eece7d4b1f3d8e583951d2a20

Authored by Shiraz Hashim
Committed by Marek Vasut
1 parent 39fd6342a4

usbtty: adapt buffers for large packet support

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

Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com>

Showing 2 changed files with 4 additions and 2 deletions Side-by-side Diff

drivers/serial/usbtty.c
... ... @@ -63,7 +63,7 @@
63 63 /*
64 64 * Buffers to hold input and output data
65 65 */
66   -#define USBTTY_BUFFER_SIZE 256
  66 +#define USBTTY_BUFFER_SIZE 2048
67 67 static circbuf_t usbtty_input;
68 68 static circbuf_t usbtty_output;
69 69  
... ... @@ -475,7 +475,9 @@
475 475 * function driver to inform it that data has arrived.
476 476 */
477 477  
478   -#define URB_BUF_SIZE 128 /* in linux we'd malloc this, but in u-boot we prefer static data */
  478 +/* in linux we'd malloc this, but in u-boot we prefer static data */
  479 +#define URB_BUF_SIZE 512
  480 +
479 481 struct urb {
480 482  
481 483 struct usb_endpoint_instance *endpoint;