From: Ramon Fried Date: Wed, 16 May 2018 09:13:38 +0000 (+0300) Subject: serial: serial_msm: initialize uart only before relocation X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=7e5ad796bcd65772a87da236ae21cd536ae3a4d2;p=u-boot.git serial: serial_msm: initialize uart only before relocation The uart is already initialized prior to relocation, reinitialization after relocation is unnecessary. Signed-off-by: Ramon Fried Reviewed-by: Simon Glass --- diff --git a/drivers/serial/serial_msm.c b/drivers/serial/serial_msm.c index 8b585deeeb..a4279accb4 100644 --- a/drivers/serial/serial_msm.c +++ b/drivers/serial/serial_msm.c @@ -184,6 +184,10 @@ static int msm_serial_probe(struct udevice *dev) int ret; struct msm_serial_data *priv = dev_get_priv(dev); + /* No need to reinitialize the UART after relocation */ + if (gd->flags & GD_FLG_RELOC) + return 0; + ret = msm_uart_clk_init(dev); if (ret) return ret;