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

Stefan Roese sr at denx.de
Fri Oct 1 08:29:46 CEST 2021


On 24.09.21 23:07, Marek Behún wrote:
> 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>

Reviewed-by: Stefan Roese <sr at denx.de>

Thanks,
Stefan

> ---
>   tools/kwboot.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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)
> 


Viele Grüße,
Stefan

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de


More information about the U-Boot mailing list