Browse Source

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 <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Mike Frysinger 18 years ago
parent
commit
c16c3ca79a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/serial/bfin_5xx.c

+ 2 - 0
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;