From: Ilpo Järvinen Date: Fri, 25 Nov 2022 13:05:06 +0000 (+0200) Subject: serial: 8250: Cleanup MCR literals X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=67a9aee7815d10e9227e32c3c7ea26726284eaef;p=linux.git serial: 8250: Cleanup MCR literals Use proper names from MCR bits. Signed-off-by: Ilpo Järvinen Link: https://lore.kernel.org/r/20221125130509.8482-4-ilpo.jarvinen@linux.intel.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c index c870ee8e80b62..e79bf2afd9bea 100644 --- a/drivers/tty/serial/8250/8250_port.c +++ b/drivers/tty/serial/8250/8250_port.c @@ -1267,7 +1267,7 @@ static void autoconfig(struct uart_8250_port *up) * that conflicts with COM 1-4 --- we hope! */ if (!(port->flags & UPF_SKIP_TEST)) { - serial8250_out_MCR(up, UART_MCR_LOOP | 0x0A); + serial8250_out_MCR(up, UART_MCR_LOOP | UART_MCR_OUT2 | UART_MCR_RTS); status1 = serial_in(up, UART_MSR) & UART_MSR_STATUS_BITS; serial8250_out_MCR(up, save_mcr); if (status1 != (UART_MSR_DCD | UART_MSR_CTS)) {