aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial/8250.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/serial/8250.c')
-rw-r--r--drivers/serial/8250.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c
index dd5e1ac22251..09a550860dcf 100644
--- a/drivers/serial/8250.c
+++ b/drivers/serial/8250.c
@@ -2343,11 +2343,8 @@ serial8250_do_set_termios(struct uart_port *port, struct ktermios *termios,
2343 2343
2344 /* 2344 /*
2345 * CTS flow control flag and modem status interrupts 2345 * CTS flow control flag and modem status interrupts
2346 * Only disable MSI if no threads are waiting in
2347 * serial_core::uart_wait_modem_status
2348 */ 2346 */
2349 if (!waitqueue_active(&up->port.state->port.delta_msr_wait)) 2347 up->ier &= ~UART_IER_MSI;
2350 up->ier &= ~UART_IER_MSI;
2351 if (!(up->bugs & UART_BUG_NOMSR) && 2348 if (!(up->bugs & UART_BUG_NOMSR) &&
2352 UART_ENABLE_MS(&up->port, termios->c_cflag)) 2349 UART_ENABLE_MS(&up->port, termios->c_cflag))
2353 up->ier |= UART_IER_MSI; 2350 up->ier |= UART_IER_MSI;
@@ -2875,7 +2872,7 @@ static struct console serial8250_console = {
2875 .device = uart_console_device, 2872 .device = uart_console_device,
2876 .setup = serial8250_console_setup, 2873 .setup = serial8250_console_setup,
2877 .early_setup = serial8250_console_early_setup, 2874 .early_setup = serial8250_console_early_setup,
2878 .flags = CON_PRINTBUFFER, 2875 .flags = CON_PRINTBUFFER | CON_ANYTIME,
2879 .index = -1, 2876 .index = -1,
2880 .data = &serial8250_reg, 2877 .data = &serial8250_reg,
2881}; 2878};