mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
Merge "soc: qcom: Dump stack in case of SSR failure for wpss"
This commit is contained in:
commit
1cda180ca1
1 changed files with 6 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue