android_kernel_samsung_msm8976/drivers/tty
Christophe JAILLET 60de168ef7 serial: efm32: Fix parity management in 'efm32_uart_console_get_options()'
commit be40597a1bc173bf9dadccdf5388b956f620ae8f upstream.

UARTn_FRAME_PARITY_ODD is 0x0300
UARTn_FRAME_PARITY_EVEN is 0x0200
So if the UART is configured for EVEN parity, it would be reported as ODD.
Fix it by correctly testing if the 2 bits are set.

Fixes: 3afbd89c96 ("serial/efm32: add new driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2019-07-27 21:44:33 +02:00
..
hvc
ipwireless
serial serial: efm32: Fix parity management in 'efm32_uart_console_get_options()' 2019-07-27 21:44:33 +02:00
vt vt: fix unchecked __put_user() in tioclinux ioctls 2019-07-27 21:44:14 +02:00
Kconfig
Makefile
amiserial.c
bfin_jtag_comm.c
cyclades.c
ehv_bytechan.c
goldfish.c
isicom.c
metag_da.c
moxa.c
moxa.h
mxser.c
mxser.h
n_gsm.c
n_hdlc.c tty: n_hdlc: get rid of racy n_hdlc.tbuf 2017-04-22 23:02:57 +02:00
n_r3964.c
n_smux.c
n_tracerouter.c
n_tracesink.c
n_tracesink.h
n_tty.c
nozomi.c
pty.c
rocket.c
rocket.h
rocket_int.h
smux_ctl.c
smux_debug.c
smux_loopback.c
smux_loopback.h
smux_private.h
smux_test.c
synclink.c
synclink_gt.c
synclinkmp.c
sysrq.c sysrq: attach sysrq handler correctly for 32-bit kernel 2019-07-27 21:43:46 +02:00
tty_audit.c
tty_buffer.c
tty_io.c
tty_ioctl.c
tty_ldisc.c
tty_ldsem.c Import latest Samsung release 2017-04-18 03:43:52 +02:00
tty_mutex.c
tty_port.c