1
0
Fork 0

MLK-24257 tty: serial: imx: clear RTSD status before suspend

Clear RTSD status before suspend due to the port also
use RTS pin as wakeup source.

Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Fugang Duan 2020-06-09 17:07:43 +08:00
parent 65e9cfc5f0
commit a376a92b7d
1 changed files with 4 additions and 2 deletions

View File

@ -2497,10 +2497,12 @@ static void imx_uart_enable_wakeup(struct imx_port *sport, bool on)
if (sport->have_rtscts) {
u32 ucr1 = imx_uart_readl(sport, UCR1);
if (on)
if (on) {
imx_uart_writel(sport, USR1_RTSD, USR1);
ucr1 |= UCR1_RTSDEN;
else
} else {
ucr1 &= ~UCR1_RTSDEN;
}
imx_uart_writel(sport, ucr1, UCR1);
}
}