Skip to content

Commit 9afdc58

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 <marcan@marcan.st>
1 parent ae635d4 commit 9afdc58

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
@@ -2103,6 +2103,9 @@ static int __maybe_unused s3c24xx_serial_suspend(struct device *dev)
21032103
{
21042104
struct uart_port *port = s3c24xx_dev_to_port(dev);
21052105

2106+
if (!console_suspend_enabled && uart_console(port))
2107+
device_set_wakeup_path(dev);
2108+
21062109
if (port)
21072110
uart_suspend_port(&s3c24xx_uart_drv, port);
21082111

0 commit comments

Comments
 (0)