]> git.baikalelectronics.ru Git - uboot.git/commit
serial: smh: Initialize serial only if semihosting is enabled
authorSean Anderson <sean.anderson@seco.com>
Tue, 22 Mar 2022 20:59:32 +0000 (16:59 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 1 Apr 2022 20:56:53 +0000 (16:56 -0400)
commit16dd6daf374fbd880b79da73df66f15d442b8921
treec8c8e68668abfa49daddaec43f1ea2b20c501edd
parent0d95b2acfe3385799ac0deb98f2178d60be96ba0
serial: smh: Initialize serial only if semihosting is enabled

If semihosting is disabled, then the user has no debugger attached, and
will not see any messages. Don't create a serial device in this
instance, to (hopefully) fall back on another working serial device.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
drivers/serial/serial_semihosting.c