The patch titled suspend: make it possible to disable serial console suspend has been removed from the -mm tree. Its filename is make-it-possible-to-disable-serial-console-suspend.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: suspend: make it possible to disable serial console suspend From: "Rafael J. Wysocki" <rjw@xxxxxxx> Hack uart_suspend_port() and uart_resume_port() so that serial console ports are not suspended if CONFIG_DISABLE_CONSOLE_SUSPEND is set. This makes it possible to debug the suspend and resume routines of all device drivers as well as the lowest-level swsusp code with the help of the serial console. Signed-off-by: Rafael J. Wysocki <rjw@xxxxxxx> Acked-by: Pavel Machek <pavel@xxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/serial/serial_core.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff -puN drivers/serial/serial_core.c~make-it-possible-to-disable-serial-console-suspend drivers/serial/serial_core.c --- a/drivers/serial/serial_core.c~make-it-possible-to-disable-serial-console-suspend +++ a/drivers/serial/serial_core.c @@ -1929,6 +1929,13 @@ int uart_suspend_port(struct uart_driver mutex_lock(&state->mutex); +#ifdef CONFIG_DISABLE_CONSOLE_SUSPEND + if (uart_console(port)) { + mutex_unlock(&state->mutex); + return 0; + } +#endif + if (state->info && state->info->flags & UIF_INITIALIZED) { const struct uart_ops *ops = port->ops; @@ -1967,6 +1974,13 @@ int uart_resume_port(struct uart_driver mutex_lock(&state->mutex); +#ifdef CONFIG_DISABLE_CONSOLE_SUSPEND + if (uart_console(port)) { + mutex_unlock(&state->mutex); + return 0; + } +#endif + uart_change_pm(state, 0); /* _ Patches currently in -mm which might be from rjw@xxxxxxx are origin.patch usb-allow-both-root-hub-interrupts-and-polling.patch ohci-remove-existing-autosuspend-code.patch ohci-add-auto-stop-support.patch uswsusp-add-pmops-prepareenterfinish-support-aka-platform-mode.patch swsusp-use-suspend_console.patch reiserfs-make-sure-all-dentries-refs-are-released-before-calling-kill_block_super-try-2.patch ide-reprogram-disk-pio-timings-on-resume.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html