diff options
author | 2025-01-07 22:32:59 +0106 | |
---|---|---|
committer | 2025-01-10 16:08:25 +0100 | |
commit | 95a1b409ba08b602bf4464786ac74d21ae0acbf3 (patch) | |
tree | bca4f2dea92068d46aa05aba0329f3e45724ec32 /net/lapb/lapb_timer.c | |
parent | serial: 8250: Use frame time to determine timeout (diff) | |
download | wireguard-linux-95a1b409ba08b602bf4464786ac74d21ae0acbf3.tar.xz wireguard-linux-95a1b409ba08b602bf4464786ac74d21ae0acbf3.zip |
serial: 8250: Use high-level writing function for FIFO
Currently serial8250_console_fifo_write() directly writes into
the UART_TX register rather than using the high-level function
serial8250_console_putchar(). This is because
serial8250_console_putchar() waits for the holding register to
become empty, which would defeat the purpose of the FIFO code.
Move the LSR_THRE waiting to a new function
serial8250_console_wait_putchar() so that the FIFO code can use
serial8250_console_putchar(). This will be particularly important
for a follow-up commit, where output bytes are inspected to track
newlines.
This is only refactoring and has no functional change.
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20250107212702.169493-4-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