Browse Source

qcacld-3.0: Add an error log before forcing fw crash

Add an error log in cds_trigger_recovery_handler() before forcing a fw
crash to help with debugging stability issues revolving around it.

Change-Id: Ifc5faa14e1812d145abc7aecd12f66db51eef3b4
CRs-Fixed: 3043316
Alan Chen 3 years ago
parent
commit
b7ce8eba14
1 changed files with 3 additions and 0 deletions
  1. 3 0
      core/cds/src/cds_api.c

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

@@ -1976,6 +1976,9 @@ static void cds_trigger_recovery_handler(const char *func, const uint32_t line)
 		goto deinit_rtl;
 	}
 
+	cds_err("critical host timeout trigger fw recovery for reason code %d",
+		gp_cds_context->recovery_reason);
+
 	cds_set_recovery_in_progress(true);
 	cds_set_assert_target_in_progress(true);
 	if (pld_force_collect_target_dump(qdf->dev))