소스 검색

qcacmn: Fix excessive logging in hif_force_wake_request

For KIWI, FISA FSE table is moved from host DDR to CMEM,
then for each time flow learning, it request to force UMAC wake
up then update FSE info in CMEM. currently hif_force_wake_request
will print PCIE_SCRATCH_0_SOC_PCIE_REG register value always,
so when flow learning happened frequently, it might lead to excessive
logging.

Remove the print for successful case, only print register value if
wake up failed.

Change-Id: I87f3b1c8f4ac0fa6270410cf8564b55446b3a40f
CRs-Fixed: 3180175
Jinwei Chen 3 년 전
부모
커밋
1e4fecd110
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      hif/src/pcie/if_pci.c

+ 2 - 2
hif/src/pcie/if_pci.c

@@ -4046,7 +4046,6 @@ int hif_force_wake_request(struct hif_opaque_softc *hif_handle)
 		value = hif_read32_mb(
 				scn, scn->mem +
 				PCIE_SOC_PCIE_REG_PCIE_SCRATCH_0_SOC_PCIE_REG);
-		hif_info("pcie scratch reg read value = %x", value);
 		if (value == HIF_POLL_UMAC_WAKE)
 			break;
 		qdf_mdelay(FORCE_WAKE_DELAY_MS);
@@ -4054,7 +4053,8 @@ int hif_force_wake_request(struct hif_opaque_softc *hif_handle)
 	} while (timeout <= FORCE_WAKE_DELAY_TIMEOUT_MS);
 
 	if (value != HIF_POLL_UMAC_WAKE) {
-		hif_err("failed force wake handshake mechanism");
+		hif_err("force wake handshake failed, reg value = 0x%x",
+			value);
 		HIF_STATS_INC(pci_scn, soc_force_wake_failure, 1);
 		return -ETIMEDOUT;
 	}