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

Commit ff15b01d authored by Prashanth Bhatta's avatar Prashanth Bhatta
Browse files

icnss: Stay awake during recovery



During recovery, there is a chance of suspending if WLAN FW takes a
while to come-up. Stay awake during recovery.

CRs-fixed: 1081218
Change-Id: I57c54da77500e38fcace367f70befed741e0e70d
Signed-off-by: default avatarPrashanth Bhatta <bhattap@codeaurora.org>
parent 8456550a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2442,12 +2442,16 @@ static int icnss_call_driver_reinit(struct icnss_priv *priv)
out:
	clear_bit(ICNSS_PD_RESTART, &priv->state);

	icnss_pm_relax(priv);

	return 0;

out_power_off:
	icnss_hw_power_off(priv);

	clear_bit(ICNSS_PD_RESTART, &priv->state);

	icnss_pm_relax(priv);
	return ret;
}

@@ -2566,6 +2570,8 @@ static int icnss_call_driver_shutdown(struct icnss_priv *priv)
	set_bit(ICNSS_PD_RESTART, &priv->state);
	clear_bit(ICNSS_FW_READY, &priv->state);

	icnss_pm_stay_awake(priv);

	if (!test_bit(ICNSS_DRIVER_PROBED, &penv->state))
		return 0;