Skip to content

Commit 202dde8

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 c622881 commit 202dde8

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
@@ -2106,6 +2106,9 @@ static int __maybe_unused s3c24xx_serial_suspend(struct device *dev)
21062106
{
21072107
struct uart_port *port = s3c24xx_dev_to_port(dev);
21082108

2109+
if (!console_suspend_enabled && uart_console(port))
2110+
device_set_wakeup_path(dev);
2111+
21092112
if (port)
21102113
uart_suspend_port(&s3c24xx_uart_drv, port);
21112114

0 commit comments

Comments
 (0)