Procházet zdrojové kódy

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 před 4 roky
rodič
revize
c4ead2606e
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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;
 	}