Commit 7d73aaf1 authored by Wolfram Sang's avatar Wolfram Sang Committed by Greg Kroah-Hartman

serial: 8250: replace hardcoded 0xbf with #define

Makes it easier to find all occurences requesting CONF_MODE_B.
Signed-off-by: default avatarWolfram Sang <w.sang@pengutronix.de>
Acked-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent cee3948d
...@@ -2002,7 +2002,7 @@ static int serial8250_startup(struct uart_port *port) ...@@ -2002,7 +2002,7 @@ static int serial8250_startup(struct uart_port *port)
serial_outp(up, UART_IER, 0); serial_outp(up, UART_IER, 0);
serial_outp(up, UART_LCR, 0); serial_outp(up, UART_LCR, 0);
serial_icr_write(up, UART_CSR, 0); /* Reset the UART */ serial_icr_write(up, UART_CSR, 0); /* Reset the UART */
serial_outp(up, UART_LCR, 0xBF); serial_outp(up, UART_LCR, UART_LCR_CONF_MODE_B);
serial_outp(up, UART_EFR, UART_EFR_ECB); serial_outp(up, UART_EFR, UART_EFR_ECB);
serial_outp(up, UART_LCR, 0); serial_outp(up, UART_LCR, 0);
} }
......
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