Commit 5db6db08 authored by Ilpo Järvinen's avatar Ilpo Järvinen Committed by Greg Kroah-Hartman

serial: 8250: Use UART_LCR_WLEN8 instead of literal

Use UART_LCR_WLEN8 instead of literal 0x03 in size_fifo().
Reviewed-by: default avatarJiri Slaby <jirislaby@kernel.org>
Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20220613075736.12283-1-ilpo.jarvinen@linux.intel.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2069cb2e
...@@ -843,7 +843,7 @@ static int size_fifo(struct uart_8250_port *up) ...@@ -843,7 +843,7 @@ static int size_fifo(struct uart_8250_port *up)
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A);
old_dl = serial_dl_read(up); old_dl = serial_dl_read(up);
serial_dl_write(up, 0x0001); 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++) for (count = 0; count < 256; count++)
serial_out(up, UART_TX, count); serial_out(up, UART_TX, count);
mdelay(20);/* FIXME - schedule_timeout */ mdelay(20);/* FIXME - schedule_timeout */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment