From: Mike Frysinger Date: Mon, 11 Jun 2007 07:31:30 +0000 (+0800) Subject: Blackfin serial driver: hook up our UARTs STP bit with userspaces CMSPAR X-Git-Tag: v2.6.22-rc5~27^2~7 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c16c3ca79abcb69a9e45f7c15f8358b3915c0e49;p=linux-2.6-omap-h63xx.git Blackfin serial driver: hook up our UARTs STP bit with userspaces CMSPAR so we can now do spaced/marked parity Signed-off-by: Mike Frysinger Signed-off-by: Bryan Wu --- diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c index 787dc7168f3..aeb3cc23a81 100644 --- a/drivers/serial/bfin_5xx.c +++ b/drivers/serial/bfin_5xx.c @@ -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;