diff --git a/drivers/soc/qcom/msm_subsystem_restart.c b/drivers/soc/qcom/msm_subsystem_restart.c index 922f0e3c74fc..69ab25363295 100644 --- a/drivers/soc/qcom/msm_subsystem_restart.c +++ b/drivers/soc/qcom/msm_subsystem_restart.c @@ -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; }