From: Pali Rohár Date: Fri, 24 Sep 2021 21:07:09 +0000 (+0200) Subject: tools: kwboot: Disable tty interbyte timeout X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=24a471bc4bac8aa3a52ad7fa209494b6bc38e58d;p=u-boot.git tools: kwboot: Disable tty interbyte timeout Function kwboot_tty_recv() has its own handling of read timeout, we don't need to do set it in tty settings. Signed-off-by: Pali Rohár Signed-off-by: Marek Behún Reviewed-by: Stefan Roese --- diff --git a/tools/kwboot.c b/tools/kwboot.c index fc83161d70..a527c79cf3 100644 --- a/tools/kwboot.c +++ b/tools/kwboot.c @@ -655,7 +655,7 @@ kwboot_open_tty(const char *path, int baudrate) cfmakeraw(&tio); tio.c_cflag |= CREAD|CLOCAL; tio.c_cc[VMIN] = 1; - tio.c_cc[VTIME] = 10; + tio.c_cc[VTIME] = 0; rc = tcsetattr(fd, TCSANOW, &tio); if (rc)