serial: 8250_early: Assume uart already initialized if no baud option
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 9 Mar 2015 20:27:16 +0000 (16:27 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 15:17:55 +0000 (16:17 +0100)
commit0e3e143e5d1e7be65331cdf6d100b08bc6c15b72
tree790b0276b7991bf2ff2218de7c81a45674bf0aa9
parentfeed5bab0d33feb5dbe5365b34d044c79f93dc6b
serial: 8250_early: Assume uart already initialized if no baud option

The <baud><parity><bit> option string is not supplied if the earlycon
is started via devicetree and OF_EARLYCON_DECLARE(). The option string
is also not required if started via kernel command line parameters of
the form:
  earlycon=uart,mmio,<addr>
  console=uart,mmio,<addr>

If earlycon_device->baud is 0, then an option string was not supplied.
In this case, assume the uart has already been initialized by the
bootloader or firmware.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_early.c