tools: kwboot: Disable tty interbyte timeout
authorPali Rohár <pali@kernel.org>
Fri, 24 Sep 2021 21:07:09 +0000 (23:07 +0200)
committerStefan Roese <sr@denx.de>
Fri, 1 Oct 2021 09:07:13 +0000 (11:07 +0200)
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 <pali@kernel.org>
Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwboot.c

index fc83161..a527c79 100644 (file)
@@ -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)