OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9539dfb
)
pch_uart: Fix parity setting issue
author
Tomoya MORINAGA
<tomoya.rohm@gmail.com>
Fri, 6 Jul 2012 08:19:43 +0000
(17:19 +0900)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 26 Jul 2012 20:37:14 +0000
(13:37 -0700)
Parity Setting value is reverse.
E.G. In case of setting ODD parity, EVEN value is set.
This patch inverts "if" condition.
Signed-off-by: Tomoya MORINAGA <tomoya.rohm@gmail.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/pch_uart.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/pch_uart.c
b/drivers/tty/serial/pch_uart.c
index
2cc9b46
..
558ce85
100644
(file)
--- a/
drivers/tty/serial/pch_uart.c
+++ b/
drivers/tty/serial/pch_uart.c
@@
-1368,7
+1368,7
@@
static void pch_uart_set_termios(struct uart_port *port,
stb = PCH_UART_HAL_STB1;
if (termios->c_cflag & PARENB) {
- if (
!(termios->c_cflag & PARODD)
)
+ if (
termios->c_cflag & PARODD
)
parity = PCH_UART_HAL_PARITY_ODD;
else
parity = PCH_UART_HAL_PARITY_EVEN;