MLK-21228-04 tty: serial: imx: no need to clear AWAKE bit again
authorFugang Duan <fugang.duan@nxp.com>
Thu, 21 Mar 2019 09:33:52 +0000 (17:33 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
No need to clear AWAKE bit again, so remove the dummy code.
That is introduced by commit 010e9572194d (MLK-17739 tty: serial:
imx: clear wakeup flag before enable wakeup interrupt) during
kernel upgrade.

Signed-off-by: Fugang Duan <B38611@freescale.com>
drivers/tty/serial/imx.c

index e9e3dd5..cdbc3d6 100644 (file)
@@ -2470,12 +2470,10 @@ static void imx_uart_enable_wakeup(struct imx_port *sport, bool on)
                imx_uart_writel(sport, USR1_AWAKE | USR1_RTSD, USR1);
 
        ucr3 = imx_uart_readl(sport, UCR3);
-       if (on) {
-               imx_uart_writel(sport, USR1_AWAKE, USR1);
+       if (on)
                ucr3 |= UCR3_AWAKEN;
-       } else {
+       else
                ucr3 &= ~UCR3_AWAKEN;
-       }
        imx_uart_writel(sport, ucr3, UCR3);
 
        if (sport->have_rtscts) {