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

Commit 074ed27b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: ssr: Check the subsystem state before initiating SSR"

parents ff67fa83 4e651c66
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -852,6 +852,12 @@ static void subsystem_restart_wq_func(struct work_struct *work)
	mutex_lock(&track->lock);
	do_epoch_check(dev);

	if (dev->track.state == SUBSYS_OFFLINE) {
		mutex_unlock(&track->lock);
		WARN(1, "SSR aborted: %s subsystem not online\n", desc->name);
		return;
	}

	/*
	 * It's necessary to take the registration lock because the subsystem
	 * list in the SoC restart order will be traversed and it shouldn't be