From 7e5ad796bcd65772a87da236ae21cd536ae3a4d2 Mon Sep 17 00:00:00 2001 From: Ramon Fried Date: Wed, 16 May 2018 12:13:38 +0300 Subject: [PATCH] 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 --- drivers/serial/serial_msm.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.30.2