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

Commit 53cc2791 authored by Rishabh Bhatnagar's avatar Rishabh Bhatnagar
Browse files

drivers: esoc: Do a warm reset as shutdown is not implemented



As shutdown is not implemented for kona, do a warm reset in
graceful shutdown and adb reboot scenarios. This should help
in resetting the modem state.

Change-Id: I5e59f3db12c34e8ad64e7ada989b9b1e54429566
Signed-off-by: default avatarRishabh Bhatnagar <rishabhb@codeaurora.org>
parent bad8da69
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2014-2015, 2017-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2014-2015, 2017-2019, The Linux Foundation. All rights reserved.
 */

#include <linux/coresight.h>
@@ -262,7 +262,7 @@ static int mdm_cmd_exe(enum esoc_cmd cmd, struct esoc_clink *esoc)
		esoc_mdm_log(
		"ESOC_FORCE_PWR_OFF: Queueing request: ESOC_REQ_SHUTDOWN\n");
		esoc_clink_queue_request(ESOC_REQ_SHUTDOWN, esoc);
		mdm_power_down(mdm);
		mdm_toggle_soft_reset(mdm, false);
		mdm_update_gpio_configs(mdm, GPIO_UPDATE_BOOTING_CONFIG);
		break;
	case ESOC_RESET:
@@ -484,7 +484,7 @@ static void mdm_notify(enum esoc_notify notify, struct esoc_clink *esoc)
		mdm->ready = false;
		esoc_mdm_log(
		"ESOC_PRIMARY_REBOOT: Powering down the modem\n");
		mdm_power_down(mdm);
		mdm_toggle_soft_reset(mdm, false);
		break;
	};
}