diff options
| -rw-r--r-- | drivers/serial/bfin_sport_uart.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/drivers/serial/bfin_sport_uart.c b/drivers/serial/bfin_sport_uart.c index 6ee73da6976b..b9938acb0309 100644 --- a/drivers/serial/bfin_sport_uart.c +++ b/drivers/serial/bfin_sport_uart.c | |||
| @@ -500,27 +500,12 @@ static void sport_set_termios(struct uart_port *port, | |||
| 500 | 500 | ||
| 501 | spin_lock_irqsave(&up->port.lock, flags); | 501 | spin_lock_irqsave(&up->port.lock, flags); |
| 502 | 502 | ||
| 503 | port->read_status_mask = OE; | 503 | port->read_status_mask = 0; |
| 504 | if (termios->c_iflag & INPCK) | ||
| 505 | port->read_status_mask |= (FE | PE); | ||
| 506 | if (termios->c_iflag & (BRKINT | PARMRK)) | ||
| 507 | port->read_status_mask |= BI; | ||
| 508 | 504 | ||
| 509 | /* | 505 | /* |
| 510 | * Characters to ignore | 506 | * Characters to ignore |
| 511 | */ | 507 | */ |
| 512 | port->ignore_status_mask = 0; | 508 | port->ignore_status_mask = 0; |
| 513 | if (termios->c_iflag & IGNPAR) | ||
| 514 | port->ignore_status_mask |= FE | PE; | ||
| 515 | if (termios->c_iflag & IGNBRK) { | ||
| 516 | port->ignore_status_mask |= BI; | ||
| 517 | /* | ||
| 518 | * If we're ignoring parity and break indicators, | ||
| 519 | * ignore overruns too (for real raw support). | ||
| 520 | */ | ||
| 521 | if (termios->c_iflag & IGNPAR) | ||
| 522 | port->ignore_status_mask |= OE; | ||
| 523 | } | ||
| 524 | 509 | ||
| 525 | /* RX extract mask */ | 510 | /* RX extract mask */ |
| 526 | up->rxmask = 0x01 | (((up->csize + up->stopb) * 2 - 1) << 0x8); | 511 | up->rxmask = 0x01 | (((up->csize + up->stopb) * 2 - 1) << 0x8); |
