]> git.baikalelectronics.ru Git - kernel.git/commit
PNP: Allow console to override ACPI device sleep
authorPeter Hurley <peter@hurleysoftware.com>
Thu, 22 Jan 2015 16:50:24 +0000 (11:50 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Feb 2015 18:11:25 +0000 (10:11 -0800)
commitf2923eb2f800aae28c92a2652d4c8288a66e5cd0
tree2fe1c2b42d207a04c5846fa0cbe39471fdf401a7
parentebf9ccf0eb83443422e6a0a6c3bfa9e74138b150
PNP: Allow console to override ACPI device sleep

If the serial console is an ACPI PNP device, the PNP bus always powers
down the device at system suspend, even though the no_console_suspend
command line parameter is specified (eg., when debugging suspend/resume).

Add PNP_CONSOLE capability, which when set, prevents calling both the
->disable() and ->suspend() PNP protocol methods if console suspend
is disabled.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pnp/driver.c
include/linux/pnp.h