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

Commit 794f9899 authored by Deepak Katragadda's avatar Deepak Katragadda Committed by Gerrit - the friendly Code Review server
Browse files

msm: ssr: Reset the crash shutdown flag on SSR completion



The crash shutdown flag is currently set for a subsystem when SSR
is triggered as a result of an err fatal interrupt or a watchdog
bite. If a kernel panic happens while restarting the subsystem in
this case, since the necessary flushing of caches/cleanup would
have been done already, we will not need to set the force_stop_gpio
again. In the case of coupled restart however, since the flag is not
set, the force_stop_gpio is set and the necessary cleanup is done for
the subsystem that is being restarted due to an SSR on a coupled
subsystem.

Currently, in the case of a coupled restart happening after a wdog
bite/ error fatal, the flushing of caches is not done since the crash
flag is still set. Reset the flag if subsystem powerup is successful
to correct this.

Change-Id: I32272762f0c27efcc0ede74578f78697c82eca20
Signed-off-by: default avatarDeepak Katragadda <dkatraga@codeaurora.org>
parent 22c343a2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -509,6 +509,7 @@ static void subsystem_powerup(struct subsys_device *dev, void *data)
		panic("[%p]: Timed out waiting for error ready: %s!",
			current, name);
	subsys_set_state(dev, SUBSYS_ONLINE);
	subsys_set_crash_status(dev, false);
}

static int __find_subsys(struct device *dev, void *data)