diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index b16e7e7961551f2ae28f52f2d012f7fa1902bdc1..03a583264d9ec78eec786930c7783b1047c82596 100644 --- a/drivers/tty/serial/stm32-usart.c +++ b/drivers/tty/serial/stm32-usart.c @@ -113,7 +113,7 @@ static void stm32_receive_chars(struct uart_port *port, bool threaded) u32 sr; char flag; - if (port->irq_wake) + if (irqd_is_wakeup_set(irq_get_irq_data(port->irq))) pm_wakeup_event(tport->tty->dev, 0); while (stm32_pending_rx(port, &sr, &stm32_port->last_res, threaded)) {