MLK-16067 tty: serial: lpuart: enable wakeup source in .suspend_noirq()
authorFugang Duan <fugang.duan@nxp.com>
Tue, 25 Jul 2017 08:42:11 +0000 (16:42 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:33:47 +0000 (15:33 -0500)
commit58ef988ce8c40263a30baa4fa1c13d00b48d811b
tree3338b319847b697790aec8a36dad93f6f04d5e6f
parentded6f82587bf11d19272fb3e8a47feee5d5c510b
MLK-16067 tty: serial: lpuart: enable wakeup source in .suspend_noirq()

When use lpuart with DMA mode as wake up source, it still switch to
cpu mode in .suspend() that enable cpu interrupts RIE and ILIE as
wakkup source. When the wakeup signal coming while rx dma chan is
already teminated down, then driver should not call irq handler to
submit the new dma descriptor.

Enable the wakeup irq bits in .suspend_noirq() and disable the wakeup
irq bits in .resume_noirq().

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
drivers/tty/serial/fsl_lpuart.c