diff options
author | John Ogness <john.ogness@linutronix.de> | 2025-01-08 00:26:58 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-01-10 18:08:24 +0300 |
commit | 8d5cfb1fe5d8692b2de79b3831445be982167531 (patch) | |
tree | d6cc074650cf14488e30cc3a495b099ce46f4278 /net/lapb/lapb_timer.c | |
parent | d91f98be26510f5f81ec66425bb0306d1ccd571a (diff) | |
download | linux-8d5cfb1fe5d8692b2de79b3831445be982167531.tar.xz |
serial: 8250: Use frame time to determine timeout
Rather than using a hard-coded per-character Tx-timeout of 10ms,
use the frame time to determine a timeout value. The value is
doubled to ensure that a timeout is only hit during unexpected
circumstances.
Since the frame time may not be available during early printing,
the previous 10ms value is kept as a fallback.
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20250107212702.169493-3-john.ogness@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions