[PATCH u-boot-marvell v2 32/39] kwboot: Disable tty interbyte timeout

Marek Behún marek.behun at nic.cz
Tue Sep 7 11:58:30 CEST 2021


From: Pali Rohár <pali at kernel.org>

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 at kernel.org>
Signed-off-by: Marek Behún <marek.behun at nic.cz>
---
 tools/kwboot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/kwboot.c b/tools/kwboot.c
index 6a37d75180..26ade7189e 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)
-- 
2.32.0



More information about the U-Boot mailing list