On Wed, Oct 19, 2022 at 12:11:26PM +0300, Ilpo Järvinen wrote: > Take advantage of the new uart_xmit_advance() helper. > > Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx> > --- > drivers/tty/serial/liteuart.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/tty/serial/liteuart.c b/drivers/tty/serial/liteuart.c > index 4c0604325ee9..062812fe1b09 100644 > --- a/drivers/tty/serial/liteuart.c > +++ b/drivers/tty/serial/liteuart.c > @@ -136,8 +136,7 @@ static void liteuart_start_tx(struct uart_port *port) > } else if (!uart_circ_empty(xmit)) { > while (xmit->head != xmit->tail) { > ch = xmit->buf[xmit->tail]; > - xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); > - port->icount.tx++; > + uart_xmit_advance(port, 1); Acked-by: Gabriel Somlo <gsomlo@xxxxxxxxx> Thanks, --Gabriel > liteuart_putchar(port, ch); > } > } > -- > 2.30.2 >