serial: tegra: support auto control of RTS
Pradeep Goudagunta [Fri, 1 Jul 2011 09:06:50 +0000 (14:06 +0530)]
Added support for auto control of RTS.

Bug 825938

Original-Change-Id: Ic5ffde2252ab0f0ffb9001994863f3d4ed5d1173
Reviewed-on: http://git-master/r/39356
Tested-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

Rebase-Id: Rb21ef7c26a2f8644ab81171b41ba4275e38023b0

drivers/tty/serial/tegra_hsuart.c

index 5a3f188..caec27f 100644 (file)
@@ -882,9 +882,9 @@ static void set_rts(struct tegra_uart_port *t, bool active)
        unsigned char mcr;
        mcr = t->mcr_shadow;
        if (active)
-               mcr |= UART_MCR_RTS;
+               mcr |= UART_MCR_RTS_EN;
        else
-               mcr &= ~UART_MCR_RTS;
+               mcr &= ~UART_MCR_RTS_EN;
        if (mcr != t->mcr_shadow) {
                uart_writeb(t, mcr, UART_MCR);
                t->mcr_shadow = mcr;