Skip to content

Commit

Permalink
Blackfin serial driver: decouple PARODD and CMSPAR checking from PARENB
Browse files Browse the repository at this point in the history
as the termios info does not stipulate that the former are dependent on the latter

Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Jun 11, 2007
1 parent cf68676 commit 19aa638
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions drivers/serial/bfin_5xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -635,13 +635,12 @@ bfin_serial_set_termios(struct uart_port *port, struct ktermios *termios,

if (termios->c_cflag & CSTOPB)
lcr |= STB;
if (termios->c_cflag & PARENB) {
if (termios->c_cflag & PARENB)
lcr |= PEN;
if (!(termios->c_cflag & PARODD))
lcr |= EPS;
if (termios->c_cflag & CMSPAR)
lcr |= STP;
}
if (!(termios->c_cflag & PARODD))
lcr |= EPS;
if (termios->c_cflag & CMSPAR)
lcr |= STP;

port->read_status_mask = OE;
if (termios->c_iflag & INPCK)
Expand Down

0 comments on commit 19aa638

Please sign in to comment.