serial: Fix IGNBRK handling
[deliverable/linux.git] / drivers / tty / serial / 8250 / 8250_core.c
index 27f7ad6b74c158f78193f394bf1636c2a870af28..7a91c6d1eb7d65cdef4bfcfdcc4935663252ff8e 100644 (file)
@@ -2357,7 +2357,7 @@ serial8250_do_set_termios(struct uart_port *port, struct ktermios *termios,
        port->read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR;
        if (termios->c_iflag & INPCK)
                port->read_status_mask |= UART_LSR_FE | UART_LSR_PE;
-       if (termios->c_iflag & (BRKINT | PARMRK))
+       if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
                port->read_status_mask |= UART_LSR_BI;
 
        /*
This page took 0.026759 seconds and 5 git commands to generate.