diff --git a/core/hdd/src/wlan_hdd_power.c b/core/hdd/src/wlan_hdd_power.c index 7091e45a91..7933743669 100644 --- a/core/hdd/src/wlan_hdd_power.c +++ b/core/hdd/src/wlan_hdd_power.c @@ -931,11 +931,11 @@ int wlan_hdd_pm_qos_notify(struct notifier_block *nb, unsigned long curr_val, if (!hdd_ctx->runtime_pm_prevented && curr_val != PM_QOS_CPU_DMA_LAT_DEFAULT_VALUE) { - hif_pm_runtime_get_noresume(hif_ctx); + hif_pm_runtime_get_noresume(hif_ctx, RTPM_ID_QOS_NOTIFY); hdd_ctx->runtime_pm_prevented = true; } else if (hdd_ctx->runtime_pm_prevented && curr_val == PM_QOS_CPU_DMA_LAT_DEFAULT_VALUE) { - hif_pm_runtime_put(hif_ctx); + hif_pm_runtime_put(hif_ctx, RTPM_ID_QOS_NOTIFY); hdd_ctx->runtime_pm_prevented = false; } @@ -1784,7 +1784,7 @@ static int _wlan_hdd_cfg80211_resume_wlan(struct wiphy *wiphy) hif_ctx = cds_get_context(QDF_MODULE_ID_HIF); errno = __wlan_hdd_cfg80211_resume_wlan(wiphy); - hif_pm_runtime_put(hif_ctx); + hif_pm_runtime_put(hif_ctx, RTPM_ID_SUSPEND_RESUME); return errno; } @@ -2021,13 +2021,13 @@ static int _wlan_hdd_cfg80211_suspend_wlan(struct wiphy *wiphy, } hif_ctx = cds_get_context(QDF_MODULE_ID_HIF); - errno = hif_pm_runtime_get_sync(hif_ctx); + errno = hif_pm_runtime_get_sync(hif_ctx, RTPM_ID_SUSPEND_RESUME); if (errno) return errno; errno = __wlan_hdd_cfg80211_suspend_wlan(wiphy, wow); if (errno) { - hif_pm_runtime_put(hif_ctx); + hif_pm_runtime_put(hif_ctx, RTPM_ID_SUSPEND_RESUME); return errno; }