[PATCH v2] console: Prefer currently selected serial console as stdio device

Tom Rini trini at konsulko.com
Tue Mar 31 22:43:03 CEST 2026


On Tue, 17 Mar 2026 03:17:40 +0100, Marek Vasut wrote:

> Adjust the scan for default console stdio device to prefer the
> currently selected serial device. This is useful in combination
> with CONFIG_SERIAL_PROBE_ALL=y, in which case the system would
> instantiate all serial devices as stdio devices in the order in
> which they are listed in control DT. The currently selected serial
> device may not be the first device listed in DT, in which case the
> current console_init_r() implementation unexpectedly switches to
> another serial console after listing stderr using "Err:" line, and
> just before showing U-Boot shell, which is not the desired behavior.
> 
> [...]

Applied to u-boot/next, thanks!

[1/1] console: Prefer currently selected serial console as stdio device
      commit: 32dc2866e020edcd89b26366ccb8fa7a2ee2859d
-- 
Tom




More information about the U-Boot mailing list