summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2022-10-19 12:11:50 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-11-03 03:35:43 +0100
commitedc62b17ed9f6db3de3521793e4689e15aad4625 (patch)
treeba71f8363ddc6fcac9fb10c1bc67c88231aad035 /drivers/tty/serial
parent41e804c4dec667e64c9204e13862cf634df794a4 (diff)
downloadlinux-stable-edc62b17ed9f6db3de3521793e4689e15aad4625.tar.gz
linux-stable-edc62b17ed9f6db3de3521793e4689e15aad4625.tar.bz2
linux-stable-edc62b17ed9f6db3de3521793e4689e15aad4625.zip
serial: xuartps: Use uart_xmit_advance()
Take advantage of the new uart_xmit_advance() helper. Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/r/20221019091151.6692-44-ilpo.jarvinen@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r--drivers/tty/serial/xilinx_uartps.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c
index 2eff7cff57c4..01d8027e64fd 100644
--- a/drivers/tty/serial/xilinx_uartps.c
+++ b/drivers/tty/serial/xilinx_uartps.c
@@ -326,9 +326,7 @@ static void cdns_uart_handle_tx(void *dev_id)
!(readl(port->membase + CDNS_UART_SR) & CDNS_UART_SR_TXFULL)) {
writel(xmit->buf[xmit->tail], port->membase + CDNS_UART_FIFO);
-
- port->icount.tx++;
- xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
+ uart_xmit_advance(port, 1);
numbytes--;
}