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

Commit e8b1fd5d authored by Sivasri Kumar Vanka's avatar Sivasri Kumar Vanka
Browse files

soc: qcom: pil-q6v5-mss:fix to notify modem for app crash



Removed force_stop_bit in condition check as this check
will fail if we need to set 0th bit.
Function qcom_smem_state_update_bits takes a mask , so
convert the bit into mask before call to this function.
Modem is notified for app crash, set ignore_errors  to
true to avoid further crash reporting from modem.

Change-Id: I28c8979f59ced81e091d98fa9c3656c017e4bfa2
Signed-off-by: default avatarSivasri Kumar Vanka <sivasri@codeaurora.org>
parent c0c85da2
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
/*
 * Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
 * Copyright (c) 2012-2021, 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
@@ -166,9 +166,11 @@ static void modem_crash_shutdown(const struct subsys_desc *subsys)

	drv->crash_shutdown = true;
	if (!subsys_get_crash_status(drv->subsys) &&
		subsys->force_stop_bit) {
		subsys->state) {
		qcom_smem_state_update_bits(subsys->state,
				BIT(subsys->force_stop_bit), 1);
				BIT(subsys->force_stop_bit),
				BIT(subsys->force_stop_bit));
		drv->ignore_errors = true;
		msleep(STOP_ACK_TIMEOUT_MS);
	}
}