From 093a4dcddff4a81241a150c4351e17b230fa5d52 Mon Sep 17 00:00:00 2001 From: Gustavo Solaira Date: Mon, 16 Apr 2018 10:31:19 -0700 Subject: [PATCH] esoc: Use standard reset time for mdm9x55 atomic reset The atomic reset command uses mdelay so it should use the standard reset time of 203ms otherwise the system can get locked for many seconds. Change-Id: I476efac0a2244101f0f5e4d046582c5746dbead6 Signed-off-by: Gustavo Solaira --- drivers/esoc/esoc-mdm-pon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/esoc/esoc-mdm-pon.c b/drivers/esoc/esoc-mdm-pon.c index 4be66a16a3a1..0288082cea00 100644 --- a/drivers/esoc/esoc-mdm-pon.c +++ b/drivers/esoc/esoc-mdm-pon.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2014-2015, 2017, The Linux Foundation. All rights reserved. +/* Copyright (c) 2014-2015, 2017-2018, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -55,7 +55,7 @@ static int mdm9x55_toggle_soft_reset(struct mdm_ctrl *mdm, bool atomic) if (!atomic) usleep_range(reset_time_us, reset_time_us + 100000); else - mdelay(mdm->reset_time_ms); + mdelay(DEF_MDM9X55_RESET_TIME); gpio_direction_output(MDM_GPIO(mdm, AP2MDM_SOFT_RESET), soft_reset_direction_de_assert); return 0;