From e4a31a803de5ea3af2826ebd35d07151c6fd636e Mon Sep 17 00:00:00 2001 From: Vevek Venkatesan Date: Fri, 1 May 2020 13:28:16 +0530 Subject: [PATCH] qcacmn: change logging with spin_lock held to debug level Change the error level logging which are called by holding the spin_lock to debug level to avoid printing to console. Change-Id: If057087e808ed49000eba8b9795397a0cf35a357 CRs-Fixed: 2676235 --- hif/src/pcie/if_pci.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/hif/src/pcie/if_pci.c b/hif/src/pcie/if_pci.c index 11b202a8fe16..c0a79bd9406a 100644 --- a/hif/src/pcie/if_pci.c +++ b/hif/src/pcie/if_pci.c @@ -4513,10 +4513,10 @@ static int __hif_pm_runtime_prevent_suspend(struct hif_pci_softc qdf_atomic_inc(&hif_sc->pm_stats.prevent_suspend); - HIF_ERROR("%s: in pm_state:%s ret: %d", __func__, - hif_pm_runtime_state_to_string( - qdf_atomic_read(&hif_sc->pm_state)), - ret); + hif_debug("%s: in pm_state:%s ret: %d", __func__, + hif_pm_runtime_state_to_string( + qdf_atomic_read(&hif_sc->pm_state)), + ret); return ret; } @@ -4561,10 +4561,10 @@ static int __hif_pm_runtime_allow_suspend(struct hif_pci_softc *hif_sc, hif_pm_runtime_mark_last_busy(hif_ctx); ret = hif_pm_runtime_put_auto(hif_sc->dev); - HIF_ERROR("%s: in pm_state:%s ret: %d", __func__, - hif_pm_runtime_state_to_string( - qdf_atomic_read(&hif_sc->pm_state)), - ret); + hif_debug("%s: in pm_state:%s ret: %d", __func__, + hif_pm_runtime_state_to_string( + qdf_atomic_read(&hif_sc->pm_state)), + ret); qdf_atomic_inc(&hif_sc->pm_stats.allow_suspend); return ret;