Skip to content

Commit 1d10cd4

Browse files
ij-intelgregkh
authored andcommitted
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: 2d908b3 ("serial: Add Tegra Combined UART driver") Cc: <stable@vger.kernel.org> # serial: Create uart_xmit_advance() Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/r/20220901143934.8850-4-ilpo.jarvinen@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 754f680 commit 1d10cd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/serial/tegra-tcu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ static void tegra_tcu_uart_start_tx(struct uart_port *port)
101101
break;
102102

103103
tegra_tcu_write(tcu, &xmit->buf[xmit->tail], count);
104-
xmit->tail = (xmit->tail + count) & (UART_XMIT_SIZE - 1);
104+
uart_xmit_advance(port, count);
105105
}
106106

107107
uart_write_wakeup(port);

0 commit comments

Comments
 (0)