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

Commit 5513c092 authored by Yuanyuan Liu's avatar Yuanyuan Liu
Browse files

icnss: block modem shutdown during driver reinit



Sending modem shutdown request during WLAN driver re-init
sequence will lead to the situation that WLAN FW will not
responding as modem/WLAN PD is down. Hence block modem
shutdown request when WLAN driver is doing re-init.

Change-Id: I8eae4daf5883925b6f7ee2ac14851bdcec285c94
CRs-Fixed: 2391616
Signed-off-by: default avatarYuanyuan Liu <yuanliu@codeaurora.org>
parent bf24f5e0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -972,16 +972,20 @@ static int icnss_pd_restart_complete(struct icnss_priv *priv)

	icnss_hw_power_on(priv);

	icnss_block_shutdown(true);

	ret = priv->ops->reinit(&priv->pdev->dev);
	if (ret < 0) {
		icnss_fatal_err("Driver reinit failed: %d, state: 0x%lx\n",
				ret, priv->state);
		if (!priv->allow_recursive_recovery)
			ICNSS_ASSERT(false);
		icnss_block_shutdown(false);
		goto out_power_off;
	}

out:
	icnss_block_shutdown(false);
	clear_bit(ICNSS_SHUTDOWN_DONE, &penv->state);
	return 0;