OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bee18bd
)
serial: sccnxp: Add IGNPAR flag handling
author
Alexander Shiyan
<shc_work@mail.ru>
Sat, 24 May 2014 08:50:27 +0000
(12:50 +0400)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 28 May 2014 19:41:58 +0000
(12:41 -0700)
This patch add IGNPAR flag handling for the driver.
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sccnxp.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/sccnxp.c
b/drivers/tty/serial/sccnxp.c
index
3f5d40a
..
5443b46
100644
(file)
--- a/
drivers/tty/serial/sccnxp.c
+++ b/
drivers/tty/serial/sccnxp.c
@@
-672,6
+672,8
@@
static void sccnxp_set_termios(struct uart_port *port,
port->ignore_status_mask = 0;
if (termios->c_iflag & IGNBRK)
port->ignore_status_mask |= SR_BRK;
+ if (termios->c_iflag & IGNPAR)
+ port->ignore_status_mask |= SR_PE;
if (!(termios->c_cflag & CREAD))
port->ignore_status_mask |= SR_PE | SR_OVR | SR_FE | SR_BRK;