Commit 3261e362 authored by Matt Reimer's avatar Matt Reimer Committed by Russell King

[ARM] 3258/1: IMX serial: fix parity

Patch from Matt Reimer

IMX serial parity generation doesn't work because of a simple logic error. This patch fixes it and now Bluetooth works on R1000.
Signed-off-by: default avatarMatt Reimer <mreimer@vpop.net>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent dd29c727
...@@ -499,7 +499,7 @@ imx_set_termios(struct uart_port *port, struct termios *termios, ...@@ -499,7 +499,7 @@ imx_set_termios(struct uart_port *port, struct termios *termios,
ucr2 |= UCR2_STPB; ucr2 |= UCR2_STPB;
if (termios->c_cflag & PARENB) { if (termios->c_cflag & PARENB) {
ucr2 |= UCR2_PREN; ucr2 |= UCR2_PREN;
if (!(termios->c_cflag & PARODD)) if (termios->c_cflag & PARODD)
ucr2 |= UCR2_PROE; ucr2 |= UCR2_PROE;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment