diff options
author | Ilpo Järvinen <[email protected]> | 2022-09-01 17:39:34 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-09-07 16:40:29 +0200 |
commit | 1d10cd4da593bc0196a239dcc54dac24b6b0a74e (patch) | |
tree | 8b5be029b461861374071c8b6ad2063f3ebf208e | |
parent | 754f68044c7dd6c52534ba3e0f664830285c4b15 (diff) |
serial: tegra-tcu: Use uart_xmit_advance(), fixes icount.tx accounting
Tx'ing does not correctly account Tx'ed characters into icount.tx.
Using uart_xmit_advance() fixes the problem.
Fixes: 2d908b38d409 ("serial: Add Tegra Combined UART driver")
Cc: <[email protected]> # serial: Create uart_xmit_advance()
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/tty/serial/tegra-tcu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/tegra-tcu.c b/drivers/tty/serial/tegra-tcu.c index 4877c54c613d..889b701ba7c6 100644 --- a/drivers/tty/serial/tegra-tcu.c +++ b/drivers/tty/serial/tegra-tcu.c @@ -101,7 +101,7 @@ static void tegra_tcu_uart_start_tx(struct uart_port *port) break; tegra_tcu_write(tcu, &xmit->buf[xmit->tail], count); - xmit->tail = (xmit->tail + count) & (UART_XMIT_SIZE - 1); + uart_xmit_advance(port, count); } uart_write_wakeup(port); |