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

Commit 8a4a737f authored by Yue Ma's avatar Yue Ma Committed by Gerrit - the friendly Code Review server
Browse files

cnss2: Remove recovery check in crash shutdown



The main purpose previously for recovery check in crash shutdown
function is to avoid collecting firmware dump twice if there is a
kernel panic happens during recovery. Currently firmware dump
collection function itself will check if dump has been collected
or not so the recovery check is redundant. Hence remove it.

Change-Id: I560f9c7502bc7f59cf6856ec80ed4ab73f0a2cbe
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent f5f31790
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -683,11 +683,6 @@ static void cnss_qca6290_crash_shutdown(struct cnss_pci_data *pci_priv)
	cnss_pr_dbg("Crash shutdown with driver_state 0x%lx\n",
		    plat_priv->driver_state);

	if (test_bit(CNSS_DRIVER_RECOVERY, &plat_priv->driver_state)) {
		cnss_pr_dbg("Ignore crash shutdown\n");
		return;
	}

	cnss_pci_collect_dump_info(pci_priv, true);
}