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: Yuanyuan Liu <yuanliu@codeaurora.org>
This commit is contained in:
Yuanyuan Liu 2017-01-12 12:46:41 -08:00
parent 2dc96b1cbb
commit 7220378f26

View file

@ -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);