Skip to content

Commit 066cd5a

Browse files
committed
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 2cc07bd commit 066cd5a

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
@@ -2204,6 +2204,9 @@ static int __maybe_unused s3c24xx_serial_suspend(struct device *dev)
22042204
{
22052205
struct uart_port *port = s3c24xx_dev_to_port(dev);
22062206

2207+
if (!console_suspend_enabled && uart_console(port))
2208+
device_set_wakeup_path(dev);
2209+
22072210
if (port)
22082211
uart_suspend_port(&s3c24xx_uart_drv, port);
22092212

0 commit comments

Comments
 (0)