From a720310823380abfe71deb15c73bcba98b261d8a Mon Sep 17 00:00:00 2001 From: Yue Ma Date: Fri, 30 Aug 2019 14:19:11 -0700 Subject: [PATCH] qcacmn: Log runtime PM wake source in debug level Since callers who log runtime PM resume source may be invoked within spinlocks or in other atomic contexts, log using info level will log to console as well which may result overhead. Log using debug level which will be logged to buffer only to avoid such issues. Change-Id: I0497c7b7528200af9a34d816865e9bbbfd8bacf2 CRs-fixed: 2518800 --- hif/src/pcie/if_pci.c | 4 ++-- wmi/src/wmi_unified.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hif/src/pcie/if_pci.c b/hif/src/pcie/if_pci.c index 39b304d7e243..c9b595d74b70 100644 --- a/hif/src/pcie/if_pci.c +++ b/hif/src/pcie/if_pci.c @@ -4059,8 +4059,8 @@ int hif_pm_runtime_get(struct hif_opaque_softc *hif_ctx) if (pm_state == HIF_PM_RUNTIME_STATE_SUSPENDED || pm_state == HIF_PM_RUNTIME_STATE_SUSPENDING) { - HIF_INFO("Runtime PM resume is requested by %ps", - (void *)_RET_IP_); + HIF_DBG("Runtime PM resume is requested by %ps", + (void *)_RET_IP_); ret = -EAGAIN; } else { ret = -EBUSY; diff --git a/wmi/src/wmi_unified.c b/wmi/src/wmi_unified.c index 13b9bb713464..50cc5d59d301 100644 --- a/wmi/src/wmi_unified.c +++ b/wmi/src/wmi_unified.c @@ -2780,7 +2780,7 @@ static void wmi_htc_log_pkt(void *ctx, HTC_PACKET *htc_pkt) cmd_id = WMI_GET_FIELD(qdf_nbuf_data(wmi_cmd_buf), WMI_CMD_HDR, COMMANDID); - WMI_LOGI("WMI command from HTC packet: %s, ID: %d\n", + WMI_LOGD("WMI command from HTC packet: %s, ID: %d\n", wmi_id_to_name(cmd_id), cmd_id); } #else