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

Commit 69bd63f4 authored by Steven Cahail's avatar Steven Cahail
Browse files

soc: qcom: glink: Panic if RPM does not respond to SSR notification



If RPM does not respond to an SSR notification, the whole SoC must be
restarted, as RPM itself cannot be restarted. However, the G-Link SSR
driver silently fails in this case.

Modify the G-Link SSR driver to cause a kernel panic if RPM does not
respond to an SSR notification.

Change-Id: I2852d3e08c58c2c2f661da0c42b77b6e037abf1f
Signed-off-by: default avatarSteven Cahail <scahail@codeaurora.org>
parent f1d461b6
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -537,8 +537,9 @@ int notify_for_subsystem(struct subsys_info *ss_info)
			notifications_successful = false;

			/* Check for RPM, as it can't be restarted */
			if (strcmp(ss_leaf_entry->ssr_name, "rpm") &&
					!ss_leaf_entry->restarted)
			if (!strcmp(ss_leaf_entry->ssr_name, "rpm"))
				panic("%s: RPM failed to respond!\n", __func__);
			else if (!ss_leaf_entry->restarted)
				subsystem_restart(ss_leaf_entry->ssr_name);
		}
		ss_leaf_entry->restarted = false;