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

Commit c3b776a3 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "icnss: Stay awake during recovery"

parents 3319e8c1 ff15b01d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2443,12 +2443,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;
}

@@ -2568,6 +2572,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;