MLK-10274 tty: serial: clear AWAKE bit after resume back
authorAndy Duan <fugang.duan@nxp.com>
Tue, 21 Mar 2017 09:14:39 +0000 (17:14 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:21:38 +0000 (15:21 -0500)
commit83781587072d0c507e057aee448527e60d7f6273
tree11d6308e70ec3abbd75298db988cc993a66c4bf5
parentcc16c38560a33654c0594b6337033ac6f65b1466
MLK-10274 tty: serial: clear AWAKE bit after resume back

When uart port (non-console port) in dma mode and use uart as remote wakeup
source, after resume back, the AWAKE bit is not cleared most of interrupts
are disabled. And then let system suspend state, system resume back immediately
without any wake up action. So we need to clear the AWAKE bit after resume
back in DMA mode.

Merge comments: it is necessary to clear AWAKE or RTSD bit.

Signed-off-by: Fugang Duan <B38611@freescale.com>
(merge patch from commit: d4b6b6b20eb2c5cca47292f89ab588b15d3be0a9)
drivers/tty/serial/imx.c