Merge tag 'tty-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
[sfrench/cifs-2.6.git] / drivers / tty / serial / sh-sci.c
index 76452fe2af867425fe48290e0a7cdd7dfe061f7b..7bd0807209299bba3f6c7af65a8d7f492d71e7de 100644 (file)
@@ -1181,10 +1181,7 @@ static void sci_dma_tx_complete(void *arg)
 
        spin_lock_irqsave(&port->lock, flags);
 
-       xmit->tail += s->tx_dma_len;
-       xmit->tail &= UART_XMIT_SIZE - 1;
-
-       port->icount.tx += s->tx_dma_len;
+       uart_xmit_advance(port, s->tx_dma_len);
 
        if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
                uart_write_wakeup(port);