]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: acpi: Not every platform has serial console a first device
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 28 Feb 2019 15:19:54 +0000 (17:19 +0200)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 10 Mar 2019 00:17:00 +0000 (08:17 +0800)
commitedf18a83f8dc993279947cfc7faaba7dedf1ad82
treeebe381cad72bd37ace892f31948e1329ac2c2fc5
parentc652dd15571e6c7df35ff30eeb8b3e2b7e6300ba
x86: acpi: Not every platform has serial console a first device

We may not do an assumption that current console device is always a first
of UCLASS_SERIAL one.

For example, on properly described Intel Edison board the console UART
is a third one.

Use current serial device as described in global data.

Fixes: a61cbad78e67 ("dm: serial: Adjust serial_getinfo() to use proper API")
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/lib/acpi_table.c