summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrashanth Bhatta <bhattap@codeaurora.org>2016-10-21 09:25:02 -0700
committerPrashanth Bhatta <bhattap@codeaurora.org>2016-10-22 11:48:10 -0700
commitff15b01d9cdab601cb5c450de5e4546cacae0fd8 (patch)
treeddae2846bc871dae5a2ac24312d7819e171e8ab5
parent8456550a58cf7d3d4123fc068fc0109d4f72a848 (diff)
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>
-rw-r--r--drivers/soc/qcom/icnss.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/soc/qcom/icnss.c b/drivers/soc/qcom/icnss.c
index 2d3d96fe80e1..843d06128c03 100644
--- a/drivers/soc/qcom/icnss.c
+++ b/drivers/soc/qcom/icnss.c
@@ -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;