projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c704e0e
)
tools: kwboot: Disable tty interbyte timeout
author
Pali Rohár
<pali@kernel.org>
Fri, 24 Sep 2021 21:07:09 +0000
(23:07 +0200)
committer
Stefan 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
patch
|
blob
|
history
diff --git
a/tools/kwboot.c
b/tools/kwboot.c
index fc83161d70fc5f4085381b9895fe2c0d22273577..a527c79cf33334053e66e97aa31e0677a19fd969 100644
(file)
--- 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] =
1
0;
+ tio.c_cc[VTIME] = 0;
rc = tcsetattr(fd, TCSANOW, &tio);
if (rc)