summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Sierra <b18039@freescale.com>2012-11-21 10:01:26 -0600
committerJason Liu <r64343@freescale.com>2012-12-03 10:59:24 +0800
commit9b600b5d80f6adca4e783f4a0a75ae717f5536ed (patch)
tree061bcf22be4791bd7536cc47f350d94a8d13dc1f
parentba1eac66c8ef33ec25568f8076515c0eaf1a0232 (diff)
ENGR00234466 UART: Fix disablement of CTS signal
On Uart driver, CTS signal were never disabled on the imx_set_mctrl function since the register was written inside of the conditional. if (mctrl & TIOCM_RTS) { temp |= UCR2_CTS; writel(temp, sport->port.membase + UCR2); } Signed-off-by: Alejandro Sierra <b18039@freescale.com>
-rw-r--r--drivers/tty/serial/imx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
index 5e9594d744d9..e610ec030ca1 100644
--- a/drivers/tty/serial/imx.c
+++ b/drivers/tty/serial/imx.c
@@ -710,10 +710,10 @@ static void imx_set_mctrl(struct uart_port *port, unsigned int mctrl)
temp = readl(sport->port.membase + UCR2) & ~UCR2_CTS;
- if (mctrl & TIOCM_RTS) {
+ if (mctrl & TIOCM_RTS)
temp |= UCR2_CTS;
- writel(temp, sport->port.membase + UCR2);
- }
+
+ writel(temp, sport->port.membase + UCR2);
if (mctrl & TIOCM_LOOP) {
temp = readl(sport->port.membase + UTS) & ~UTS_LOOP;