From 83b6d69732f782e2b295153f959ec36d4a56c024 Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Sun, 31 Jul 2016 10:15:31 -0700 Subject: [PATCH] g: increase usb console TX buffer size to 4K Increasing the USB console TX buffer size allows to see pretty much all early startup messages generated before USB console is initialized. There is still plenty of room left in SRAM, 23K on cr50, much more on all other g based boards. BRANCH=none BUG=none TEST=observed better USB console output on cr50 restarts. Change-Id: I82f37ee7f3aecd8b7e95f3d421789c11375b2fd4 Signed-off-by: Vadim Bendebury Reviewed-on: https://chromium-review.googlesource.com/364811 Reviewed-by: Bill Richardson Reviewed-by: Nadim Taha --- chip/g/usb_console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chip/g/usb_console.c b/chip/g/usb_console.c index 41f98251fa..b9c35a53f2 100644 --- a/chip/g/usb_console.c +++ b/chip/g/usb_console.c @@ -62,7 +62,7 @@ static uint8_t ep_buf_rx[USB_MAX_PACKET_SIZE]; static struct g_usb_desc ep_out_desc; static struct g_usb_desc ep_in_desc; -static struct queue const tx_q = QUEUE_NULL(256, uint8_t); +static struct queue const tx_q = QUEUE_NULL(4096, uint8_t); static struct queue const rx_q = QUEUE_NULL(USB_MAX_PACKET_SIZE, uint8_t);