소스 검색

qcacld-3.0: check for firmware state during the init sequence

During the init sequnce host and firmware exchange the capability
messages, if there is any timeout driver currently induces the fatal
to debug the issues.

If the reason for the timeout is beacaue is because of firmware is
already recovering gracefully return resulting in probe failure.

Change-Id: I487aeae23db37a0ad2d991bae113b221e19a439a
CRs-Fixed: 2742638
Arun Kumar Khandavalli 4 년 전
부모
커밋
c4ead2606e
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      core/wma/src/wma_main.c

+ 2 - 1
core/wma/src/wma_main.c

@@ -6904,7 +6904,8 @@ QDF_STATUS wma_wait_for_ready_event(WMA_HANDLE handle)
 					       WMA_READY_EVENTID_TIMEOUT);
 	if (!tgt_hdl->info.wmi_ready) {
 		wma_err("Error in pdev creation");
-		QDF_DEBUG_PANIC("FW ready event timed out");
+		if (!cds_is_driver_recovering() || !cds_is_fw_down())
+			QDF_DEBUG_PANIC("FW ready event timed out");
 		return QDF_STATUS_E_INVAL;
 	}