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

Commit 9cc22ed0 authored by Anuj Garg's avatar Anuj Garg Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: ssr: Enable the irqs before powering up subsystems



Enabling the irqs from other subsystems before they power up. This
ensures that the irqs are not missed by hlos.

Change-Id: I501cf28c3ea7244358f26b0a2d95572022315871
Signed-off-by: default avatarAnuj Garg <anujgarg@codeaurora.org>
parent ba67f857
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2011-2020, The Linux Foundation. All rights reserved.
 * Copyright (c) 2011-2021, The Linux Foundation. All rights reserved.
 */

#define pr_fmt(fmt) "subsys-restart: %s(): " fmt, __func__
@@ -778,6 +778,7 @@ static int subsystem_powerup(struct subsys_device *dev, void *data)
	pr_info("[%s:%d]: Powering up %s\n", current->comm, current->pid, name);
	reinit_completion(&dev->err_ready);

	enable_all_irqs(dev);
	ret = dev->desc->powerup(dev->desc);
	if (ret < 0) {
		notify_each_subsys_device(&dev, 1, SUBSYS_POWERUP_FAILURE,
@@ -793,7 +794,6 @@ static int subsystem_powerup(struct subsys_device *dev, void *data)
			pr_err("Powerup failure on %s\n", name);
		return ret;
	}
	enable_all_irqs(dev);

	ret = wait_for_err_ready(dev);
	if (ret) {