Re: [PATCH tty-next v4 2/6] serial: 8250: Use frame rate to determine timeout

From: Petr Mladek
Date: Fri Jan 03 2025 - 06:19:05 EST


On Fri 2024-12-27 23:51:18, John Ogness wrote:
> Rather than using a hard-coded per-character Tx-timeout of 10ms,
> use the frame rate to determine a timeout value. The value is
> doubled to ensure that a timeout is only hit during unexpected
> circumstances.
>
> Since the frame rate may not be available during early printing,
> the previous 10ms value is kept as a fallback.
>
> Signed-off-by: John Ogness <john.ogness@xxxxxxxxxxxxx>

It makes sense and looks good to me with and even without
the changes proposed by Andy:

Reviewed-by: Petr Mladek <pmladek@xxxxxxxx>

Best Regards,
Petr