Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 15993769 authored by Rishabh Bhatnagar's avatar Rishabh Bhatnagar Committed by Gerrit - the friendly Code Review server
Browse files

drivers: esoc: Don't increment pon counter incase of retry



While setting the number of pon tries the retry from mdm-helper
can't be taken into account. So don't increase the pon_trial
counter when mdm-helper sends retry command to esoc, as it might
affect the sequence set from userspace.

Change-Id: Ic1fb333cba629e33560d0db66c5da80145c9c47a
Signed-off-by: default avatarRishabh Bhatnagar <rishabhb@codeaurora.org>
parent 9c37100a
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
// SPDX-License-Identifier: GPL-2.0-only
/*
/*
 * Copyright (c) 2013-2015, 2017-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2013-2015, 2017-2020, The Linux Foundation. All rights reserved.
 */
 */


#include <linux/delay.h>
#include <linux/delay.h>
@@ -516,7 +516,6 @@ static int mdm_subsys_powerup(const struct subsys_desc *crashed_subsys)
		} else if (mdm_drv->pon_state == PON_RETRY) {
		} else if (mdm_drv->pon_state == PON_RETRY) {
			esoc_mdm_log(
			esoc_mdm_log(
			"Boot failed. Doing cleanup and attempting to retry\n");
			"Boot failed. Doing cleanup and attempting to retry\n");
			pon_trial++;
			mdm_subsys_retry_powerup_cleanup(esoc_clink, 0);
			mdm_subsys_retry_powerup_cleanup(esoc_clink, 0);
		} else if (mdm_drv->pon_state == PON_SUCCESS) {
		} else if (mdm_drv->pon_state == PON_SUCCESS) {
			break;
			break;