소스 검색

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
Rajeev Kumar 7 년 전
부모
커밋
6dd45a84ec
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      core/cds/src/cds_api.c

+ 5 - 0
core/cds/src/cds_api.c

@@ -1849,6 +1849,11 @@ static void cds_trigger_recovery_work(void *param)
 		return;
 	}
 
+	if (cds_is_fw_down()) {
+		cds_err("FW is down; ignoring recovery trigger");
+		return;
+	}
+
 	qdf = cds_get_context(QDF_MODULE_ID_QDF_DEVICE);
 	if (!qdf) {
 		cds_err("Qdf context is null");