serial: 8250_pnp: Enable PNP_CONSOLE for console ports
authorPeter Hurley <peter@hurleysoftware.com>
Thu, 22 Jan 2015 16:50:25 +0000 (11:50 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Feb 2015 18:11:25 +0000 (10:11 -0800)
commitee15947cf69a9ab035089670ee76160678eb5aa2
treef404ef190dee2abd4a4ed4b2fb7f51e858afd926
parent01395d798452435f19de3bfe5d04325db4e49677
serial: 8250_pnp: Enable PNP_CONSOLE for console ports

When the kernel command line parameter, no_console_suspend, is used,
the console should continue to output console messages during and
after system suspend. For a serial console, the serial core ensures
that the device is not shutdown when no_console_suspend is specified.
However, the default operation of the pnp bus will disable and suspend
the device and no further output occurs.

When registering the 8250 port, if the serial device is a console
set the PNP_CONSOLE capability, which prevents device power-off
if consoles are not suspending.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_pnp.c