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

Commit 2634d03a authored by Ameya Thakur's avatar Ameya Thakur Committed by Gerrit - the friendly Code Review server
Browse files

esoc: mdm: Reset esoc only if the system is resetting



We now cold reset the esoc only if the system is resetting.
Earlier we would reset it in the shut down flow as well.
This was causing the mdm to get powered on again since it
had already been shut down at this point.

Change-Id: I3041f3e4983f8c29212cd48a52fec3b8d2c90f93
Signed-off-by: default avatarAmeya Thakur <ameyat@codeaurora.org>
parent 2f04273d
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -48,9 +48,10 @@ static int esoc_msm_restart_handler(struct notifier_block *nb,
					esoc_restart);
	struct esoc_clink *esoc_clink = mdm_drv->esoc_clink;
	const struct esoc_clink_ops const *clink_ops = esoc_clink->clink_ops;

	if (action == SYS_RESTART) {
		dev_dbg(&esoc_clink->dev, "Notifying esoc of cold reboot\n");
		clink_ops->notify(ESOC_PRIMARY_REBOOT, esoc_clink);
	}
	return NOTIFY_OK;
}
static void mdm_handle_clink_evt(enum esoc_evt evt,