Blackfin serial driver: decouple PARODD and CMSPAR checking from PARENB
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>
This commit is contained in:
parent
cf68676222
commit
19aa6382e3
1 changed files with 5 additions and 6 deletions
|
@ -635,13 +635,12 @@ bfin_serial_set_termios(struct uart_port *port, struct ktermios *termios,
|
||||||
|
|
||||||
if (termios->c_cflag & CSTOPB)
|
if (termios->c_cflag & CSTOPB)
|
||||||
lcr |= STB;
|
lcr |= STB;
|
||||||
if (termios->c_cflag & PARENB) {
|
if (termios->c_cflag & PARENB)
|
||||||
lcr |= PEN;
|
lcr |= PEN;
|
||||||
if (!(termios->c_cflag & PARODD))
|
if (!(termios->c_cflag & PARODD))
|
||||||
lcr |= EPS;
|
lcr |= EPS;
|
||||||
if (termios->c_cflag & CMSPAR)
|
if (termios->c_cflag & CMSPAR)
|
||||||
lcr |= STP;
|
lcr |= STP;
|
||||||
}
|
|
||||||
|
|
||||||
port->read_status_mask = OE;
|
port->read_status_mask = OE;
|
||||||
if (termios->c_iflag & INPCK)
|
if (termios->c_iflag & INPCK)
|
||||||
|
|
Loading…
Reference in a new issue