소스 검색

qcacld-3.0: Return failure for runtime resume if FW is down

Currently when the FW is down, runtime resume return success
status but does not send the power exit and WOW wake up from
sleep command to FW. So WMI_WOW_SET_ACTION_WAKE_UP_CMDID
command is sent to FW which leads to panic.

To avoid this issue, send the correct error status for runtime
resume if FW is down.

CRs-Fixed: 2830614
Change-Id: Id27d2648427b32d32c15370fbb170fafec9450d2
Sachin Ahuja 4 년 전
부모
커밋
592a88ad7b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      components/pmo/core/src/wlan_pmo_suspend_resume.c

+ 1 - 0
components/pmo/core/src/wlan_pmo_suspend_resume.c

@@ -1347,6 +1347,7 @@ QDF_STATUS pmo_core_psoc_bus_resume_req(struct wlan_objmgr_psoc *psoc,
 	/* If target was not suspended, bail out */
 	if (qdf_is_fw_down() || !pmo_tgt_is_target_suspended(psoc)) {
 		pmo_psoc_put_ref(psoc);
+		status = QDF_STATUS_E_AGAIN;
 		goto out;
 	}