Skip to content

Commit aa216af

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 <[email protected]>
1 parent 7763abb commit aa216af

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
@@ -2193,6 +2193,9 @@ static int __maybe_unused s3c24xx_serial_suspend(struct device *dev)
21932193
{
21942194
struct uart_port *port = s3c24xx_dev_to_port(dev);
21952195

2196+
if (!console_suspend_enabled && uart_console(port))
2197+
device_set_wakeup_path(dev);
2198+
21962199
if (port)
21972200
uart_suspend_port(&s3c24xx_uart_drv, port);
21982201

0 commit comments

Comments
 (0)