Check for PM QoS Latency constraint only if dynamic runtime pm is enabled. Change-Id: If38de1d5c28ec80fb3dccaa6444916cf81347268 CRs-Fixed: 3196823
@@ -1640,7 +1640,8 @@ static int wlan_hdd_runtime_suspend(struct device *dev)
return -EBUSY;
}
- if (wlan_hdd_is_cpu_pm_qos_in_progress(hdd_ctx)) {
+ if (hdd_ctx->config->runtime_pm == hdd_runtime_pm_dynamic &&
+ wlan_hdd_is_cpu_pm_qos_in_progress(hdd_ctx)) {
hdd_debug("PM QoS Latency constraint, ignore runtime suspend");