Revert "tty: serial: 8250: add CON_CONSDEV to flags"
commit6741f551a0b26479de2532ffa43a366747e6dbf3
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 11 Dec 2016 02:05:49 +0000 (11 10:05 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Jan 2017 07:35:17 +0000 (11 08:35 +0100)
treefd52784bae906f4249bfa2149a34e4cca012232a
parent2bed8a8e70729f996af92042d3ad0f11870acc1f
Revert "tty: serial: 8250: add CON_CONSDEV to flags"

This commit needs to be reverted because it prevents people from
using the serial console as a secondary console with input being
directed to tty0.

IOW, if you boot with console=ttyS0 console=tty0 then all kernels
prior to this commit will produce output on both ttyS0 and tty0
but input will only be taken from tty0.  With this patch the serial
console will always be the primary console instead of tty0,
potentially preventing people from getting into their machines in
emergency situations.

Fixes: d03516df8375 ("tty: serial: 8250: add CON_CONSDEV to flags")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_core.c