[U-Boot] [PATCH] dm: serial: Initialize serial console only when it wasn't already configured

Stefan Roese sr at denx.de
Fri Jan 26 09:56:46 UTC 2018


On 25.01.2018 18:24, Lukasz Majewski wrote:
> It may happen that the MXC serial IP block is performing some ongoing
> transmission (started at e.g. board_init()) when the "initr_serial" is
> called.
> 
> As a result the serial port IP block is reset, so transmitted data is
> corrupted:
> 
> I2C:   ready
> DRAM:  1 GiB
> jSS('HH��SL_SDHC: 04 rev 0x0
> 
> This patch prevents from this situation, by avoiding re-initialization of
> serial IP block (and execution of the same code twice).
> 
> I2C:   ready
> DRAM:  1 GiB
> ID:    unit type 0x4 rev 0x0
> 
> This patch is a follow up of following discussions:
> http://patchwork.ozlabs.org/patch/820824/
> http://patchwork.ozlabs.org/patch/830957/
> 
> 
> Signed-off-by: Lukasz Majewski <lukma at denx.de>

Reviewed-by: Stefan Roese <sr at denx.de>

Thanks,
Stefan


More information about the U-Boot mailing list