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

This commit is contained in:
qctecmdr 2021-08-10 03:21:51 -07:00 • committed by Gerrit - the friendly Code Review server
commit 1cda180ca1

View file

@ -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;
}