tty: serial: imx: clear the RTSD status before enable the RTSD irq
authorFugang Duan <fugang.duan@nxp.com>
Thu, 25 Nov 2021 01:43:06 +0000 (09:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Nov 2021 17:38:19 +0000 (18:38 +0100)
commitc67643b46c28fc8bb7d81c65bc7eef18c3fbe972
tree8c521671a6ddecfb2f05552e67ed81b1069f971a
parentd78328bcc4d0e677f2ff83f4ae1f43c933fbd143
tty: serial: imx: clear the RTSD status before enable the RTSD irq

Clear RTSD status before enabling the irq event for RTSD in
imx_uart_enable_wakeup function.
Since RTSD can be set as the wakeup source, this can avoid any risk of
false triggering of a wake-up interrupts.

Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Link: https://lore.kernel.org/r/20211125014306.4432-1-sherry.sun@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c