소스 검색

cnss2: modify return value of API for resuming PCIe bus

PCI bus resuming should be treated as fail once MHI
resume fails, to avoid the following operations those
depend on the result.

Change-Id: If3d21abf95cc2816bf6c34cb950ff430eee022d3
CRs-Fixed: 3795957
Yu Wang 1 년 전
부모
커밋
0500077d51
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      cnss2/pci.c

+ 2 - 1
cnss2/pci.c

@@ -4057,7 +4057,8 @@ int cnss_pci_resume_bus(struct cnss_pci_data *pci_priv)
 	pci_set_master(pci_dev);
 
 skip_enable_pci:
-	cnss_pci_set_mhi_state(pci_priv, CNSS_MHI_RESUME);
+	if (cnss_pci_set_mhi_state(pci_priv, CNSS_MHI_RESUME))
+		ret = -EAGAIN;
 out:
 	return ret;
 }