Message ID | 20240422111123.1622967-1-claudiu.beznea.uj@bp.renesas.com |
---|---|
State | New |
Headers | show |
Series | serial: sh-sci: Call device_set_wakeup_path() for serial console | expand |
diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index 97031db26ae4..57a7f18e16e4 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c @@ -3441,8 +3441,12 @@ static __maybe_unused int sci_suspend(struct device *dev) { struct sci_port *sport = dev_get_drvdata(dev); - if (sport) + if (sport) { + if (uart_console(&sport->port) && !console_suspend_enabled) + device_set_wakeup_path(dev); + uart_suspend_port(&sci_uart_driver, &sport->port); + } return 0; }