]> git.baikalelectronics.ru Git - uboot.git/commit
Merge branch '2022-09-24-add-console-flush' into next
authorTom Rini <trini@konsulko.com>
Sat, 24 Sep 2022 17:58:49 +0000 (13:58 -0400)
committerTom Rini <trini@konsulko.com>
Sat, 24 Sep 2022 17:58:49 +0000 (13:58 -0400)
commit7b1ab59afc20813cf43500815fb7873acd19f2ea
tree75203cc106a2c1c340024fdb562be7c9b6d0e4e2
parent60438a7c0dc8c5a7074f304d534f12fd89aa5854
parent65defed4fd3e1e962c44418be251f1cb78608099
Merge branch '2022-09-24-add-console-flush' into next

To quote the author:
On certain places it is required to flush output print buffers to ensure
that text strings were sent to console or serial devices. For example when
printing message that U-Boot is going to boot kernel or when U-Boot is
going to change baudrate of terminal device.

Some console devices, like UART, have putc/puts functions which just put
characters into HW transmit queue and do not wait until all data are
transmitted. Doing some sensitive operations (like changing baudrate or
starting kernel which resets UART HW) cause that U-Boot messages are lost.

Therefore introduce a new flush() function, implement it for all serial
devices via pending(false) callback and use this new flush() function on
sensitive places after which output device may go into reset state.

This change fixes printing of U-Boot messages:
"## Starting application at ..."
"## Switch baudrate to ..."

In addition, take a patch from Heinrich to rename some EFI test
functions in order to not conflict with this series.