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)
commit01395d798452435f19de3bfe5d04325db4e49677
tree2fe1c2b42d207a04c5846fa0cbe39471fdf401a7
parent2f7f558c222bc0ed617aa9888d0043a9aeeba253
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