From: Matt Reimer Date: Fri, 13 Jan 2006 20:51:44 +0000 (+0000) Subject: [ARM] 3258/1: IMX serial: fix parity X-Git-Tag: v2.6.16-rc1~107^2~19 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3261e362f603cf2649f90e9ad2d1a1f98f69291a;p=linux-2.6 [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: Matt Reimer Signed-off-by: Russell King --- diff --git a/drivers/serial/imx.c b/drivers/serial/imx.c index 5c098be934..587cc6a951 100644 --- a/drivers/serial/imx.c +++ b/drivers/serial/imx.c @@ -499,7 +499,7 @@ imx_set_termios(struct uart_port *port, struct termios *termios, ucr2 |= UCR2_STPB; if (termios->c_cflag & PARENB) { ucr2 |= UCR2_PREN; - if (!(termios->c_cflag & PARODD)) + if (termios->c_cflag & PARODD) ucr2 |= UCR2_PROE; }