Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

serial: omap: add the functionality of a 9-bit UART with userspaces CMSPAR

Some systems require the additional communication functionality of a
9-bit UART. For that we could use the "stick" (mark/space) parity
bit supported on omap serial device. When is set, if PARODD is set the
parity bit is always 1; if PARODD is not set, then the parity bit is
always 0.

Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Enric Balletbo i Serra and committed by
Greg Kroah-Hartman
fdbc7353 a6b68a69

+2
+2
drivers/tty/serial/omap-serial.c
··· 776 776 cval |= UART_LCR_PARITY; 777 777 if (!(termios->c_cflag & PARODD)) 778 778 cval |= UART_LCR_EPAR; 779 + if (termios->c_cflag & CMSPAR) 780 + cval |= UART_LCR_SPAR; 779 781 780 782 /* 781 783 * Ask the core to calculate the divisor for us.