[Adding Johannes and Tim]

On Tue, Jan 10, 2023 at 4:24 PM Loic Poulain <loic.poul...@linaro.org> wrote:
>
> The u-boot console may show some corrupted characters when
> printing in board_init() due to reset of the UART (probe)
> before the TX FIFO has been completely drained.
>
> To fix this issue, and in case UART is still running, we now
> try to flush the FIFO before proceeding to UART reinitialization.
> For this we're waiting for Transmitter Complete bit, indicating
> that the FIFO and the shift register are empty.
>
> flushing has a 4ms timeout guard, which is normally more than
> enough to consume the FIFO @ low baudrate (9600bps).
>
> Signed-off-by: Loic Poulain <loic.poul...@linaro.org>
> Tested-by: Lothar Waßmann <l...@karo-electronics.de>
> ---
>  v2: Add this commit to the series
>  v3: Fix typo & reordering commits for good bisectability

Reviewed-by: Fabio Estevam <feste...@denx.de>

Thanks

Reply via email to