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: Prashanth Bhatta <bhattap@codeaurora.org>
This commit is contained in:
parent
8456550a58
commit
ff15b01d9c
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue