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

Commit 7220378f authored by Yuanyuan Liu's avatar Yuanyuan Liu
Browse files

icnss: Ignore MSA0 dump collection during graceful shutdown



Ignore MSA0 dump collection during graceful shutdown. Collect
ramdump only when modem is really crashed.

CRs-Fixed: 1110935
Change-Id: Ic2fbfec320eb516224daad9ae78be07c61376cfc
Signed-off-by: default avatarYuanyuan Liu <yuanliu@codeaurora.org>
parent 2dc96b1c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1906,7 +1906,7 @@ static int icnss_modem_notifier_nb(struct notifier_block *nb,
	icnss_pr_dbg("Modem-Notify: event %lu\n", code);

	if (code == SUBSYS_AFTER_SHUTDOWN &&
		notif->crashed != CRASH_STATUS_WDOG_BITE) {
		notif->crashed == CRASH_STATUS_ERR_FATAL) {
		icnss_remove_msa_permissions(priv);
		icnss_pr_info("Collecting msa0 segment dump\n");
		icnss_msa0_ramdump(priv);