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>
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) {