]> 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)
commit5f894a38a0e3450a6d4770e48dfba177e8c12611
tree369de5455854a4dc8980c45d7c91a0babe1353c9
parent22f59aa048992942f3ea633fd1c02b9731a4dcc1
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: bcd13b371239 (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