Blackfin serial driver: hook up our UARTs STP bit with userspaces CMSPAR
authorMike Frysinger <michael.frysinger@analog.com>
Mon, 11 Jun 2007 07:31:30 +0000 (15:31 +0800)
committerBryan Wu <bryan.wu@analog.com>
Mon, 11 Jun 2007 07:31:30 +0000 (15:31 +0800)
so we can now do spaced/marked parity

Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
drivers/serial/bfin_5xx.c

index 787dc7168f3e00925f9a7b26bacefb995f58fdd4..aeb3cc23a813c6be218eefc70944dc28888d35f7 100644 (file)
@@ -629,6 +629,8 @@ bfin_serial_set_termios(struct uart_port *port, struct ktermios *termios,
                lcr |= PEN;
                if (!(termios->c_cflag & PARODD))
                        lcr |= EPS;
+               if (termios->c_cflag & CMSPAR)
+                       lcr |= STP;
        }
 
        port->read_status_mask = OE;