summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-10-30 16:38:03 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2017-10-30 16:38:03 -0700
commit5f479447d983111c039f1d6d958553c1ad1b2ff1 (patch)
tree083c30786b6bdec21913e34cc39fca8a54caa22c
parentb39ab98e2f4728d98973fd1bc531e3c4cbccb21c (diff)
parent2a9a86d5c81389cd9afe6a4fea42c585733cd705 (diff)
downloadlinux-stable-5f479447d983111c039f1d6d958553c1ad1b2ff1.tar.gz
linux-stable-5f479447d983111c039f1d6d958553c1ad1b2ff1.tar.bz2
linux-stable-5f479447d983111c039f1d6d958553c1ad1b2ff1.zip
Merge tag 'pm-urgent-4.14' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull power management fix from Rafael Wysocki: "This fixes new breakage introduced by the most recent PM QoS fix in which, embarrassingly enough, I forgot to update dev_pm_qos_raw_read_value() to return the right default for devices with no PM QoS constraints at all which prevents runtime PM from suspending those devices (fix from Tero Kristo)" * tag 'pm-urgent-4.14' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: PM / QoS: Fix default runtime_pm device resume latency
-rw-r--r--include/linux/pm_qos.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/pm_qos.h b/include/linux/pm_qos.h
index 6737a8c9e8c6..d68b0569a5eb 100644
--- a/include/linux/pm_qos.h
+++ b/include/linux/pm_qos.h
@@ -175,7 +175,8 @@ static inline s32 dev_pm_qos_requested_flags(struct device *dev)
static inline s32 dev_pm_qos_raw_read_value(struct device *dev)
{
return IS_ERR_OR_NULL(dev->power.qos) ?
- 0 : pm_qos_read_value(&dev->power.qos->resume_latency);
+ PM_QOS_RESUME_LATENCY_NO_CONSTRAINT :
+ pm_qos_read_value(&dev->power.qos->resume_latency);
}
#else
static inline enum pm_qos_flags_status __dev_pm_qos_flags(struct device *dev,