aboutsummaryrefslogtreecommitdiff
path: root/drivers/serial/serial_msm.c
diff options
context:
space:
mode:
authorRamon Fried2018-05-16 12:13:38 +0300
committerTom Rini2018-05-26 12:46:50 -0400
commit7e5ad796bcd65772a87da236ae21cd536ae3a4d2 (patch)
tree7592d5bda4c1baf2ede89ceb8c48514439f7e251 /drivers/serial/serial_msm.c
parent11d59fe5374a1a35d6293951794e32f0c0126739 (diff)
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 <ramon.fried@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/serial/serial_msm.c')
-rw-r--r--drivers/serial/serial_msm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/serial/serial_msm.c b/drivers/serial/serial_msm.c
index 8b585deeeb5..a4279accb4f 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;