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

Commit ba3dde18 authored by Steven Cahail's avatar Steven Cahail
Browse files

soc: qcom: glink: Panic if intent for SSR notification to RPM fails



When sending SSR notifications, it is a fatal error if the intent for
the notification to RPM cannot be queued. However, the G-Link SSR driver
does not treat this case as a fatal error, but instead continues
processing.

Panic if an intent to RPM cannot be queued.

Change-Id: Ib158f6cf9cd647651f42db79625886b266c9b428
Signed-off-by: default avatarSteven Cahail <scahail@codeaurora.org>
parent 69bd63f4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -498,6 +498,9 @@ int notify_for_subsystem(struct subsys_info *ss_info)
			if (strcmp(ss_leaf_entry->ssr_name, "rpm")) {
				subsystem_restart(ss_leaf_entry->ssr_name);
				ss_leaf_entry->restarted = true;
			} else {
				panic("%s: Could not queue intent for RPM!\n",
						__func__);
			}
			atomic_dec(&responses_remaining);
			continue;