diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2017-10-27 10:05:13 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2017-12-21 11:14:02 +0100 |
commit | 309d4a8e2e26eab3f0c05756ef86407e67c05ffe (patch) | |
tree | c53fce928b967680d6a72c0cce2b6419161786ea | |
parent | 823c0b0593f5c68cbe56eb736006c7e070e23908 (diff) |
tty: serial: fsl_lpuart: report wakeup event
Call the system wakeup event framework to report a wakeup when
a receive interrupt has been triggered.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
-rw-r--r-- | drivers/tty/serial/fsl_lpuart.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c index 2c72ed5071f1..b94a4d7b4849 100644 --- a/drivers/tty/serial/fsl_lpuart.c +++ b/drivers/tty/serial/fsl_lpuart.c @@ -632,6 +632,9 @@ static irqreturn_t lpuart_rxint(int irq, void *dev_id) unsigned long flags; unsigned char rx, sr; + if (sport->port.irq_wake) + pm_wakeup_event(port->tty->dev, 0); + spin_lock_irqsave(&sport->port.lock, flags); while (!(readb(sport->port.membase + UARTSFIFO) & UARTSFIFO_RXEMPT)) { |