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)
commit2a9a86d5c81389cd9afe6a4fea42c585733cd705
tree369de5455854a4dc8980c45d7c91a0babe1353c9
parent0b07194bb55ed836c2cc7c22e866b87a14681984
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: 0cc2b4e5a020 (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