summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2016-07-31 10:15:31 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-08-01 13:45:00 -0700
commit83b6d69732f782e2b295153f959ec36d4a56c024 (patch)
treed5b2d53237f7be09e8c952d7a6cbaad01856a943
parentc0a3f29b7196c00f4fc34d2e0148a4df03177bb8 (diff)
downloadchrome-ec-83b6d69732f782e2b295153f959ec36d4a56c024.tar.gz
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 <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/364811 Reviewed-by: Bill Richardson <wfrichar@chromium.org> Reviewed-by: Nadim Taha <ntaha@chromium.org>
-rw-r--r--chip/g/usb_console.c2
1 files changed, 1 insertions, 1 deletions
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);