Skip to content

Commit

Permalink
ENGR00234466 UART: Fix disablement of CTS signal
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alejandro Sierra committed Nov 28, 2012
1 parent 1c382ea commit 8ddd1ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/tty/serial/imx.c
Expand Up @@ -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;
Expand Down

0 comments on commit 8ddd1ff

Please sign in to comment.