diff options
author | Mike Frysinger <michael.frysinger@analog.com> | 2007-06-11 10:16:45 +0200 |
---|---|---|
committer | Bryan Wu <bryan.wu@analog.com> | 2007-06-11 10:16:45 +0200 |
commit | 19aa6382e3c927b8ec5caec7b74c3dc555101146 (patch) | |
tree | 05bc890751297ee3844ca75a13f282838bc68c7e /drivers/serial | |
parent | Blackfin serial driver: actually implement the break_ctl() function (diff) | |
download | linux-19aa6382e3c927b8ec5caec7b74c3dc555101146.tar.xz linux-19aa6382e3c927b8ec5caec7b74c3dc555101146.zip |
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>
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/bfin_5xx.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c index a9d202717829..22569bd5d821 100644 --- a/drivers/serial/bfin_5xx.c +++ b/drivers/serial/bfin_5xx.c @@ -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) |