serial: imx: drop CTS/RTS handling from shutdown
authorSebastian Reichel <sebastian.reichel@collabora.co.uk>
Thu, 24 May 2018 17:30:23 +0000 (19:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 15:54:42 +0000 (17:54 +0200)
According to Documentation/serial/driver the shutdown function should
not disable RTS, so drop it.

Suggested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c

index 80bed82e0e0e06852d0cc028dd6b8349ad464aff..e146d66bf80c19a99711df62dd33d6063c62cdfe 100644 (file)
@@ -1450,7 +1450,7 @@ static void imx_uart_shutdown(struct uart_port *port)
 
        spin_lock_irqsave(&sport->port.lock, flags);
        ucr2 = imx_uart_readl(sport, UCR2);
-       ucr2 &= ~(UCR2_TXEN | UCR2_CTSC | UCR2_CTS | UCR2_ATEN);
+       ucr2 &= ~(UCR2_TXEN | UCR2_ATEN);
        imx_uart_writel(sport, ucr2, UCR2);
        spin_unlock_irqrestore(&sport->port.lock, flags);