Browse Source

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 năm trước cách đây
mục cha
commit
1e4fecd110
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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;
 	}