]> git.ipfire.org Git - thirdparty/u-boot.git/commit
serial: avoid redundant early UART initialization
authorAswin Murugan <aswin.murugan@oss.qualcomm.com>
Wed, 15 Jul 2026 17:30:00 +0000 (23:00 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 28 Jul 2026 18:30:55 +0000 (12:30 -0600)
commit8eb3f9ef9e0de0dcea4aa85d770d6aebdb577f4a
tree973e7f793d829176ad8614f09b5a358e0a1dddb3
parent1a86b8764f8fc13599faf247b4d2f78b4fc6cd3d
serial: avoid redundant early UART initialization

When DEBUG_UART and SKIP_EARLY_DM are enabled, the serial console
is still probed before relocation even though DEBUG_UART already
configures the UART and provides early console output. The debug
UART configuration is sufficient until relocation, making full
serial driver initialization at this stage unnecessary.
Furthermore, the initialization is slow since it runs with dcache
disabled and is repeated again after relocation.

Skip pre-relocation serial probing in this configuration and
defer full UART initialization until after relocation. Update the
GENI UART probe logic accordingly.

This removes redundant UART initialization and improves boot
performance.

Signed-off-by: Aswin Murugan <aswin.murugan@oss.qualcomm.com>
drivers/serial/serial-uclass.c
drivers/serial/serial_msm_geni.c