Blackfin serial driver: ignore framing and parity errors
if we get a break signal, we want to ignore framing and parity errors because those will always be set (by nature of the signal) Signed-off-by: Mike Frysinger <michael.frysinger@analog.com> Signed-off-by: Bryan Wu <bryan.wu@analog.com>
This commit is contained in:
parent
c16c3ca79a
commit
9808901b6c
1 changed files with 2 additions and 0 deletions
|
@ -185,6 +185,7 @@ static void bfin_serial_rx_chars(struct bfin_serial_port *uart)
|
|||
uart->port.icount.brk++;
|
||||
if (uart_handle_break(&uart->port))
|
||||
goto ignore_char;
|
||||
status &= ~(PE | FE);
|
||||
}
|
||||
if (status & PE)
|
||||
uart->port.icount.parity++;
|
||||
|
@ -341,6 +342,7 @@ static void bfin_serial_dma_rx_chars(struct bfin_serial_port *uart)
|
|||
uart->port.icount.brk++;
|
||||
if (uart_handle_break(&uart->port))
|
||||
goto dma_ignore_char;
|
||||
status &= ~(PE | FE);
|
||||
}
|
||||
if (status & PE)
|
||||
uart->port.icount.parity++;
|
||||
|
|
Reference in a new issue