Re: [PATCH v3 1/2] serial: mxc: Wait for TX completion before reset

2023-01-11 Thread Loic Poulain
On Wed, 11 Jan 2023 at 09:08, Pali Rohár wrote: > > On Wednesday 11 January 2023 08:53:30 Loic Poulain wrote: > > On Wed, 11 Jan 2023 at 00:53, Pali Rohár wrote: > > > > > > On Tuesday 10 January 2023 20:24:06 Loic Poulain wrote: > > > > The u-boot console may show some corrupted characters when

Re: [PATCH v3 1/2] serial: mxc: Wait for TX completion before reset

2023-01-11 Thread Pali Rohár
On Wednesday 11 January 2023 08:53:30 Loic Poulain wrote: > On Wed, 11 Jan 2023 at 00:53, Pali Rohár wrote: > > > > On Tuesday 10 January 2023 20:24:06 Loic Poulain wrote: > > > The u-boot console may show some corrupted characters when > > > printing in board_init() due to reset of the UART

Re: [PATCH v3 1/2] serial: mxc: Wait for TX completion before reset

2023-01-10 Thread Loic Poulain
On Wed, 11 Jan 2023 at 00:53, Pali Rohár wrote: > > On Tuesday 10 January 2023 20:24:06 Loic Poulain 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

Re: [PATCH v3 1/2] serial: mxc: Wait for TX completion before reset

2023-01-10 Thread Pali Rohár
On Tuesday 10 January 2023 20:24:06 Loic Poulain 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

Re: [PATCH v3 1/2] serial: mxc: Wait for TX completion before reset

2023-01-10 Thread Fabio Estevam
[Adding Johannes and Tim] On Tue, Jan 10, 2023 at 4:24 PM Loic Poulain 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

[PATCH v3 1/2] serial: mxc: Wait for TX completion before reset

2023-01-10 Thread Loic Poulain
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