diff options
author | Pali Rohár <pali@kernel.org> | 2021-09-24 23:07:09 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2021-10-01 11:07:13 +0200 |
commit | 24a471bc4bac8aa3a52ad7fa209494b6bc38e58d (patch) | |
tree | f6e534cf5e4720b4f57f748588746fca74b2352e | |
parent | c704e0e1df93328a336780c8e3dd87ad44b4f351 (diff) | |
download | u-boot-24a471bc4bac8aa3a52ad7fa209494b6bc38e58d.zip u-boot-24a471bc4bac8aa3a52ad7fa209494b6bc38e58d.tar.gz u-boot-24a471bc4bac8aa3a52ad7fa209494b6bc38e58d.tar.bz2 |
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 <pali@kernel.org>
Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
-rw-r--r-- | tools/kwboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/kwboot.c b/tools/kwboot.c index fc83161..a527c79 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) |