Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

serial: 8250_pericom: Use UART_LCR_DLAB

Use UART_LCR_DLAB instead of literal.

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-2-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ilpo Järvinen and committed by
Greg Kroah-Hartman
d4b06172 5db6db08

+1 -1
+1 -1
drivers/tty/serial/8250/8250_pericom.c
··· 73 73 struct uart_8250_port *up = up_to_u8250p(port); 74 74 int lcr = serial_port_in(port, UART_LCR); 75 75 76 - serial_port_out(port, UART_LCR, lcr | 0x80); 76 + serial_port_out(port, UART_LCR, lcr | UART_LCR_DLAB); 77 77 serial_dl_write(up, divisor); 78 78 serial_port_out(port, 2, 16 - scr); 79 79 serial_port_out(port, UART_LCR, lcr);