public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] usbtty: adapt buffers for large packet support
@ 2012-02-24 11:59 Amit Virdi
  0 siblings, 0 replies; 3+ messages in thread
From: Amit Virdi @ 2012-02-24 11:59 UTC (permalink / raw)
  To: u-boot

From: Shiraz Hashim <shiraz.hashim@st.com>

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

Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com>
Signed-off-by: Amit Virdi <amit.virdi@st.com>
---
 drivers/serial/usbtty.c |    2 +-
 include/usbdevice.h     |    4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/serial/usbtty.c b/drivers/serial/usbtty.c
index a263b2c..550bc58 100644
--- a/drivers/serial/usbtty.c
+++ b/drivers/serial/usbtty.c
@@ -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;
 
diff --git a/include/usbdevice.h b/include/usbdevice.h
index 4171636..9eb8849 100644
--- a/include/usbdevice.h
+++ b/include/usbdevice.h
@@ -467,7 +467,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;
-- 
1.7.2.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] usbtty: adapt buffers for large packet support
@ 2012-12-17  8:49 Vipin Kumar
  2012-12-18 18:29 ` Marek Vasut
  0 siblings, 1 reply; 3+ messages in thread
From: Vipin Kumar @ 2012-12-17  8:49 UTC (permalink / raw)
  To: u-boot

From: Shiraz Hashim <shiraz.hashim@st.com>

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 | 2 +-
 include/usbdevice.h     | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/serial/usbtty.c b/drivers/serial/usbtty.c
index e47cb9a..148d1a6 100644
--- a/drivers/serial/usbtty.c
+++ b/drivers/serial/usbtty.c
@@ -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;
 
diff --git a/include/usbdevice.h b/include/usbdevice.h
index 3edaf8b..7037efd 100644
--- a/include/usbdevice.h
+++ b/include/usbdevice.h
@@ -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;
-- 
1.8.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] usbtty: adapt buffers for large packet support
  2012-12-17  8:49 [U-Boot] [PATCH] usbtty: adapt buffers for large packet support Vipin Kumar
@ 2012-12-18 18:29 ` Marek Vasut
  0 siblings, 0 replies; 3+ messages in thread
From: Marek Vasut @ 2012-12-18 18:29 UTC (permalink / raw)
  To: u-boot

Dear Vipin Kumar,

> From: Shiraz Hashim <shiraz.hashim@st.com>
> 
> Increase buffer sizes at driver and tty level to accommodate kermit
> large packet support.
> 
> Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com>

Applied, thanks.

Best regards,
Marek Vasut

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-12-18 18:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-17  8:49 [U-Boot] [PATCH] usbtty: adapt buffers for large packet support Vipin Kumar
2012-12-18 18:29 ` Marek Vasut
  -- strict thread matches above, loose matches on Subject: below --
2012-02-24 11:59 Amit Virdi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox