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

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

cnss2: Collect firmware dump during kernel panic



For QCA6290 WLAN device, collecting firmware dump during kernel
panic while host driver is loading or unloading should not be
skipped.

Change-Id: I12bb5def4caa1ffd1249e4af9bb7c9150d7dee05
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent ea8e4215
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1185,9 +1185,7 @@ static void cnss_qca6290_crash_shutdown(struct cnss_plat_data *plat_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) ||
	    test_bit(CNSS_DRIVER_LOADING, &plat_priv->driver_state) ||
	    test_bit(CNSS_DRIVER_UNLOADING, &plat_priv->driver_state)) {
	if (test_bit(CNSS_DRIVER_RECOVERY, &plat_priv->driver_state)) {
		cnss_pr_dbg("Ignore crash shutdown\n");
		return;
	}