aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-03-09 12:25:36 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2010-05-21 12:34:28 -0400
commit60bd940f142741092b95a2e572f81741dc867545 (patch)
tree2a305f51fbbd422db95e8e65ccbd05dbcf474570 /drivers/serial
parentf4d10ca895841ec0090bed81e614b6c731ac7d7d (diff)
serial: bfin_sport_uart: drop useless status masks
These were all copied over from the Blackfin UART driver, but they don't make sense here because these bits are all specific to the Blackfin UART. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/bfin_sport_uart.c17
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);