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

Commit 2b877e52 authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: pil: Do not panic on powerup if the system is rebooting



When SSR occurs during reboot, ueventd may be killed which can cause
request_firmware in pil_boot to return an error. Do not panic in this
case as the request_firmware call is expected to fail.

Change-Id: I6bfdf4d9a634dec1aa56a1fdc5553cefe4a94a72
Signed-off-by: default avatarKyle Yan <kyan@codeaurora.org>
Signed-off-by: default avatarJitendra Sharma <shajit@codeaurora.org>
parent 3533b322
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -686,14 +686,17 @@ static int subsystem_powerup(struct subsys_device *dev, void *data)
	if (ret < 0) {
		notify_each_subsys_device(&dev, 1, SUBSYS_POWERUP_FAILURE,
								NULL);
		if (!dev->desc->ignore_ssr_failure)
		if (system_state == SYSTEM_RESTART
			|| 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)
			panic("[%s:%d]: Powerup error: %s!",
				current->comm, current->pid, name);
		else {
		else
			pr_err("Powerup failure on %s\n", name);
		return ret;
	}
	}
	enable_all_irqs(dev);

	ret = wait_for_err_ready(dev);