summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRajeev Kumar <rajekuma@codeaurora.org>2017-10-20 14:25:13 -0700
committersnandini <snandini@codeaurora.org>2017-10-21 20:00:57 -0700
commit26b34914f28f123caa15eeb72f7b4d3a55ebca75 (patch)
treeeef2736ffe77f8a0b81e4ecf58f87e7a781d70b4
parentbda11699b0f012059f6adf0abf8e7985cc88b2c0 (diff)
qcacld-3.0: Ignore target suspend if fw is down
Ignore target suspend timeout if fw is down such that system can recover gracefully. Change-Id: I26c3a1fb34483a46cd4f9d48d17408b688e5ad6c CRs-Fixed: 2130097
-rw-r--r--core/wma/src/wma_features.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c
index 1fbc94f668ec..fed93029fdbd 100644
--- a/core/wma/src/wma_features.c
+++ b/core/wma/src/wma_features.c
@@ -8570,6 +8570,8 @@ static inline void wma_suspend_target_timeout(bool is_self_recovery_enabled)
else if (cds_is_driver_in_bad_state())
WMA_LOGE("%s: Module in bad state; Ignoring suspend timeout",
__func__);
+ else if (cds_is_fw_down())
+ WMA_LOGE(FL("FW is down; Ignoring suspend timeout"));
else
cds_trigger_recovery(CDS_SUSPEND_TIMEOUT);
}