diff options
author | Tom Hughes <tomhughes@chromium.org> | 2020-06-03 17:12:31 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-06-05 18:10:53 +0000 |
commit | 880a9e8f7200a4a0e3f2d98e85fcf492434db161 (patch) | |
tree | b77b5428d5cb3dae8dd9bfb9143dce1c786f0d05 /board/servo_micro | |
parent | 6c08aba5c3ce54888abcdb2fef6f6b093865a5d6 (diff) | |
download | chrome-ec-880a9e8f7200a4a0e3f2d98e85fcf492434db161.tar.gz |
servo_micro: Increase USART2 queue size
When servo_micro is forwarded to a remote machine with usbip
(go/chromeos-wfh-tools#usbip) and the FPMCU console is on USART2, I see
dropped characters:
> help
Known commands:
chan flashwrite gpioset reboot sysinfo
crash fpcapture hc history rw taskinfo
flashinfo e info; HELP CMD = help on CMD.
This doesn't happen when using the same setup with servo_micro's USART3,
which has a larger queue size of 1024, so increase USART2 queue size to
match.
BRANCH=none
BUG=b:147849609
TEST=make buildall -j
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I5badc239dad866eba0571b3626961b1008979273
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2229296
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'board/servo_micro')
-rw-r--r-- | board/servo_micro/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/servo_micro/board.c b/board/servo_micro/board.c index d778f021c2..6bbbd85c84 100644 --- a/board/servo_micro/board.c +++ b/board/servo_micro/board.c @@ -68,7 +68,7 @@ void board_config_pre_init(void) static struct usart_config const usart2; struct usb_stream_config const usart2_usb; -static struct queue const usart2_to_usb = QUEUE_DIRECT(128, uint8_t, +static struct queue const usart2_to_usb = QUEUE_DIRECT(1024, uint8_t, usart2.producer, usart2_usb.consumer); static struct queue const usb_to_usart2 = QUEUE_DIRECT(64, uint8_t, usart2_usb.producer, usart2.consumer); |