1
0
Fork 0
alistair23-linux/drivers/base/power
Rafael J. Wysocki 37f75c6aa8 PM: runtime: Drop pm_runtime_clean_up_links()
commit d6e3666859 upstream.

After commit d12544fb2a ("PM: runtime: Remove link state checks in
rpm_get/put_supplier()") nothing prevents the consumer device's
runtime PM from acquiring additional references to the supplier
device after pm_runtime_clean_up_links() has run (or even while it
is running), so calling this function from __device_release_driver()
may be pointless (or even harmful).

Moreover, it ignores stateless device links, so the runtime PM
handling of managed and stateless device links is inconsistent
because of it, so better get rid of it entirely.

Fixes: d12544fb2a ("PM: runtime: Remove link state checks in rpm_get/put_supplier()")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: 5.1+ <stable@vger.kernel.org> # 5.1+
Tested-by: Xiang Chen <chenxiang66@hisilicon.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-10 12:37:34 +01:00
..
Makefile PM / wakeup: Show wakeup sources stats in sysfs 2019-08-21 00:20:40 +02:00
clock_ops.c PM / clk: Remove error message on out-of-memory condition 2019-05-28 19:40:21 +02:00
common.c drivers: base: power: add proper SPDX identifiers on files that did not have them. 2019-04-04 20:03:40 +02:00
domain.c PM / Domains: Allow no domain-idle-states DT property in genpd when parsing 2020-04-17 10:50:12 +02:00
domain_governor.c PM / QOS: Pass request type to dev_pm_qos_read_value() 2019-07-04 10:40:54 +02:00
generic_ops.c drivers: base: power: add proper SPDX identifiers on files that did not have them. 2019-04-04 20:03:40 +02:00
main.c PM: sleep: core: Fix the handling of pending runtime resume requests 2020-09-03 11:27:05 +02:00
power.h PM / wakeup: Register wakeup class kobj after device is added 2019-08-21 00:25:16 +02:00
qos.c PM: QoS: Drop frequency QoS types from device PM QoS 2019-10-21 02:05:21 +02:00
runtime.c PM: runtime: Drop pm_runtime_clean_up_links() 2020-11-10 12:37:34 +01:00
sysfs.c PM / wakeup: Register wakeup class kobj after device is added 2019-08-21 00:25:16 +02:00
trace.c drivers: base: power: add proper SPDX identifiers on files that did not have them. 2019-04-04 20:03:40 +02:00
wakeirq.c drivers: base: power: add proper SPDX identifiers on files that did not have them. 2019-04-04 20:03:40 +02:00
wakeup.c PM: wakeup: Show statistics for deleted wakeup sources again 2020-07-31 18:39:32 +02:00
wakeup_stats.c PM / wakeup: Unexport wakeup_source_sysfs_{add,remove}() 2019-08-21 00:26:43 +02:00