diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-09-09 12:12:58 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-09-25 09:27:38 +0200 |
commit | 77b2d26805c9b438b5f74cf73849979d28cefeb3 (patch) | |
tree | ccf828c88497770a9c594c24dd5544fe23086c57 /drivers/tty/serial/8250/8250_omap.c | |
parent | a12c689209185c1ad872723a644d0cd27e52d49c (diff) | |
download | lwn-77b2d26805c9b438b5f74cf73849979d28cefeb3.tar.gz lwn-77b2d26805c9b438b5f74cf73849979d28cefeb3.zip |
serial: 8250_omap: Convert to use uart_xmit_advance()
uart_xmit_advance() provides a common way on how to advance
the Tx queue. Use it for the sake of unification and robustness.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220909091258.68886-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/8250/8250_omap.c')
-rw-r--r-- | drivers/tty/serial/8250/8250_omap.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/tty/serial/8250/8250_omap.c b/drivers/tty/serial/8250/8250_omap.c index 85578b95c1ac..871f8a050513 100644 --- a/drivers/tty/serial/8250/8250_omap.c +++ b/drivers/tty/serial/8250/8250_omap.c @@ -984,9 +984,7 @@ static void omap_8250_dma_tx_complete(void *param) dma->tx_running = 0; - xmit->tail += dma->tx_size; - xmit->tail &= UART_XMIT_SIZE - 1; - p->port.icount.tx += dma->tx_size; + uart_xmit_advance(&p->port, dma->tx_size); if (priv->delayed_restore) { priv->delayed_restore = 0; |