소스 검색

qcacld-3.0: Trigger recovery on enable irq failure in suspend path

When enable irq failure is encountered trigger recovery with reason
code ENABLE_IRQ_FAILURE, this helps to recover the system in error
scenario.

Change-Id: I003f43fc9e3473cc939729700a03c8a8c790d34f
CRs-Fixed: 3724860
Karthik Kantamneni 1 년 전
부모
커밋
4a7a9d7b6c
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      components/pmo/core/src/wlan_pmo_suspend_resume.c

+ 3 - 2
components/pmo/core/src/wlan_pmo_suspend_resume.c

@@ -1047,11 +1047,12 @@ QDF_STATUS pmo_core_txrx_suspend(struct wlan_objmgr_psoc *psoc)
 
 	status = cdp_drain_txrx(dp_soc, 0);
 	if (QDF_IS_STATUS_ERROR(status)) {
-		pmo_err("Prevent suspend unable to drain txrx");
+		pmo_err("Prevent suspend unable to drain txrx status:%u",
+			status);
 		ret = hif_enable_grp_irqs(hif_ctx);
 		if (ret && ret != -EOPNOTSUPP) {
 			pmo_err("Failed to enable grp irqs: %d", ret);
-			QDF_BUG(0);
+			qdf_trigger_self_recovery(psoc, QDF_ENABLE_IRQ_FAILURE);
 		}
 		goto out;
 	}