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

Commit 086639c2 authored by Naina Mehta's avatar Naina Mehta
Browse files

soc: qcom: Dump stack in case of SSR failure for wpss



Dump stack in case of SSR failure when ignore_ssr_failure
flag is enabled for wpss on Yupik platform.

Change-Id: I98fd294b12fe7bd9b52deb15edb8d83a5113acd8
Signed-off-by: default avatarNaina Mehta <nainmeht@codeaurora.org>
parent 4abc6114
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -686,14 +686,16 @@ static int subsystem_powerup(struct subsys_device *dev, void *data)
		notify_each_subsys_device(&dev, 1, SUBSYS_POWERUP_FAILURE,
								NULL);
		if (system_state == SYSTEM_RESTART
			|| system_state == SYSTEM_POWER_OFF)
			|| system_state == SYSTEM_POWER_OFF) {
			WARN(1, "SSR aborted: %s, system reboot/shutdown is under way\n",
				name);
		else if (!dev->desc->ignore_ssr_failure)
		} else if (!dev->desc->ignore_ssr_failure) {
			panic("[%s:%d]: Powerup error: %s!",
				current->comm, current->pid, name);
		else
			pr_err("Powerup failure on %s\n", name);
		} else {
			pr_err("Powerup failure on %s(rc:%d)\n", name, ret);
			dump_stack();
		}
		return ret;
	}