On 10 August 2015 at 06:59, Simon Glass <s...@chromium.org> wrote: > On 8 August 2015 at 09:45, Hans de Goede <hdego...@redhat.com> wrote: >> Currently the serial code assumes that there is always at least one serial >> port (and panics / crashes due to null pointer dereferences when there is >> none). >> >> This makes it impossible to use u-boot on boards where there is no (debug) >> serial port, because e.g. all uart pins are muxed to another function. >> >> This commit adds a CONFIG_REQUIRE_SERIAL_CONSOLE Kconfig option, which >> defaults to y (preserving existing behavior), which can be set to n on >> such boards to make them work. >> >> This commit only implements this for CONFIG_DM_SERIAL=y configs, as allowing >> running without a serial port for CONFIG_DM_SERIAL=n configs is non trivial, >> and is not necessary at this moment. >> >> Signed-off-by: Hans de Goede <hdego...@redhat.com> >> --- >> Changes in v2: >> -Fix some typos in the Kconfig description / help-text. >> --- >> drivers/serial/Kconfig | 11 +++++++++++ >> drivers/serial/serial-uclass.c | 20 +++++++++++++++++--- >> 2 files changed, 28 insertions(+), 3 deletions(-) > > Acked-by: Simon Glass <s...@chromium.org>
Applied to u-boot-dm, thanks! _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot