mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-07-17 14:57:47 +00:00
df83a59b6b
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
From 60811100a88284132fb0d48f99305e87f8c74d0f Mon Sep 17 00:00:00 2001
|
|
From: Tomoya MORINAGA <tomoya.rohm@gmail.com>
|
|
Date: Fri, 6 Jul 2012 17:19:43 +0900
|
|
Subject: [PATCH 69/70] pch_uart: Fix parity setting issue
|
|
|
|
commit 38bd2a1ac736901d1cf4971c78ef952ba92ef78b upstream.
|
|
|
|
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>
|
|
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
---
|
|
drivers/tty/serial/pch_uart.c | 2 +-
|
|
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
|
|
diff --git a/drivers/tty/serial/pch_uart.c b/drivers/tty/serial/pch_uart.c
|
|
index 82f5760..08b92a6 100644
|
|
--- a/drivers/tty/serial/pch_uart.c
|
|
+++ b/drivers/tty/serial/pch_uart.c
|
|
@@ -1265,7 +1265,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;
|
|
--
|
|
1.7.7.6
|
|
|