summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBhuvanchandra DV <bhuvanchandra.dv@toradex.com>2016-08-16 19:24:09 +0530
committerStefan Agner <stefan.agner@toradex.com>2016-09-29 13:57:50 -0700
commit51243ff16ee09fe3a2c9d0eb557b08081f11fc36 (patch)
tree894e000386cc9513d5b24b8fccf2a85d5a6af4b6
parent8f2dbc30ed0274c960b9a29086d677e111551e5a (diff)
tty: serial: fsl_lpuart: Fix parity control
Make sure to disable the parity control if parity is disabled. Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
-rw-r--r--drivers/tty/serial/fsl_lpuart.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c
index caf0e9caf3d1..662e1cb2f3a8 100644
--- a/drivers/tty/serial/fsl_lpuart.c
+++ b/drivers/tty/serial/fsl_lpuart.c
@@ -1486,6 +1486,8 @@ lpuart32_set_termios(struct uart_port *port, struct ktermios *termios,
else
ctrl &= ~UARTCTRL_PT;
}
+ } else {
+ ctrl &= ~UARTCTRL_PE;
}
/* ask the core to calculate the divisor */