Skip to content

Commit 8c109dc

Browse files
marcanjannau
authored andcommitted
tty: serial: samsung_tty: Mark as wakeup_path on no_console_suspend
Devices not in the wakeup path always have their power domains shut down on suspend, which breaks no_console_suspend. Use the wakeup path feature to stop this from happening. This is somewhat an abuse of the concept as named, but the end result is exactly what we desire. Signed-off-by: Hector Martin <[email protected]>
1 parent be51a49 commit 8c109dc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/tty/serial/samsung_tty.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2101,6 +2101,9 @@ static int __maybe_unused s3c24xx_serial_suspend(struct device *dev)
21012101
{
21022102
struct uart_port *port = s3c24xx_dev_to_port(dev);
21032103

2104+
if (!console_suspend_enabled && uart_console(port))
2105+
device_set_wakeup_path(dev);
2106+
21042107
if (port)
21052108
uart_suspend_port(&s3c24xx_uart_drv, port);
21062109

0 commit comments

Comments
 (0)