]> git.baikalelectronics.ru Git - kernel.git/commit
PM / QoS: Fix default runtime_pm device resume latency
authorTero Kristo <t-kristo@ti.com>
Mon, 30 Oct 2017 07:10:46 +0000 (09:10 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 30 Oct 2017 09:54:57 +0000 (10:54 +0100)
commitc2a93b7b14bfa6fef9d883b85118af8d30194780
tree369de5455854a4dc8980c45d7c91a0babe1353c9
parentc163dbd2855838e8b6bda6665d81e4bba48ec517
PM / QoS: Fix default runtime_pm device resume latency

The recent change to the PM QoS framework to introduce a proper
no constraint value overlooked to handle the devices which don't
implement PM QoS OPS.  Runtime PM is one of the more severely
impacted subsystems, failing every attempt to runtime suspend
a device.  This leads into some nasty second level issues like
probe failures and increased power consumption among other
things.

Fix this by adding a proper return value for devices that don't
implement PM QoS.

Fixes: 7f396c78ad9c (PM / QoS: Fix device resume latency PM QoS)
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Cc: All applicable <stable@vger.kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/linux/pm_qos.h