]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
usbtty: adapt buffers for large packet support
authorShiraz Hashim <shiraz.hashim@st.com>
Mon, 17 Dec 2012 08:49:37 +0000 (14:19 +0530)
committerMarek Vasut <marex@denx.de>
Sat, 16 Mar 2013 20:12:02 +0000 (21:12 +0100)
Increase buffer sizes at driver and tty level to accommodate kermit
large packet support.

Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com>
drivers/serial/usbtty.c
include/usbdevice.h

index e47cb9a9e724bbb560a3b0f42f0c844dd0bcb867..148d1a6ddd3b17cac525ec7ed48d053b2d0329ae 100644 (file)
@@ -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;
 
index 3edaf8bcc268a66212cb56a3dac8d67b4a9aae4b..7037efd33eb0c85dede846b5fd62dc6babf8d708 100644 (file)
@@ -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;