]> git.baikalelectronics.ru Git - kernel.git/commitdiff
serial: 8250: Use UART_LCR_WLEN8 instead of literal
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 13 Jun 2022 07:57:35 +0000 (10:57 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jun 2022 12:33:15 +0000 (14:33 +0200)
Use UART_LCR_WLEN8 instead of literal 0x03 in size_fifo().

Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20220613075736.12283-1-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_port.c

index 3e3d784aa628f8ce88b31a463cfd7bc1368c1a6c..3a8747ec672b3aed29b829287aa81bb67b7f1273 100644 (file)
@@ -843,7 +843,7 @@ static int size_fifo(struct uart_8250_port *up)
        serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A);
        old_dl = serial_dl_read(up);
        serial_dl_write(up, 0x0001);
-       serial_out(up, UART_LCR, 0x03);
+       serial_out(up, UART_LCR, UART_LCR_WLEN8);
        for (count = 0; count < 256; count++)
                serial_out(up, UART_TX, count);
        mdelay(20);/* FIXME - schedule_timeout */