WSL2-Linux-Kernel/drivers/base
Rafael J. Wysocki b55ef8508a PM: runtime: Do not call __rpm_callback() from rpm_idle()
[ Upstream commit bc80c2e438 ]

Calling __rpm_callback() from rpm_idle() after adding device links
support to the former is a clear mistake.

Not only it causes rpm_idle() to carry out unnecessary actions, but it
is also against the assumption regarding the stability of PM-runtime
status across __rpm_callback() invocations, because rpm_suspend() and
rpm_resume() may run in parallel with __rpm_callback() when it is called
by rpm_idle() and the device's PM-runtime status can be updated by any
of them.

Fixes: 21d5c57b37 ("PM / runtime: Use device links")
Link: https://lore.kernel.org/linux-pm/36aed941-a73e-d937-2721-4f0decd61ce0@quicinc.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:14:04 +01:00
..
firmware_loader firmware_loader: use kernel credentials when reading firmware 2022-05-18 10:26:53 +02:00
power PM: runtime: Do not call __rpm_callback() from rpm_idle() 2022-12-31 13:14:04 +01:00
regmap regmap-irq: Fix offset/index mismatch in read_sub_irq_data() 2022-06-29 09:03:25 +02:00
test device property: build kunit tests without structleak plugin 2021-10-06 17:53:42 -06:00
Kconfig
Makefile
arch_numa.c memblock: introduce saner 'memblock_free_ptr()' interface 2021-09-14 13:23:22 -07:00
arch_topology.c arm64: topology: move store_cpu_topology() to shared code 2022-10-26 12:34:22 +02:00
attribute_container.c
auxiliary.c
base.h
bus.c driver: base: fix UAF when driver_attach failed 2022-06-14 18:36:09 +02:00
cacheinfo.c
class.c
component.c component: do not leave master devres group open after bind 2021-11-18 19:16:08 +01:00
container.c
core.c PM: runtime: Redefine pm_runtime_release_supplier() 2022-07-12 16:35:09 +02:00
cpu.c x86/bugs: Report AMD retbleed vulnerability 2022-07-23 12:54:02 +02:00
dd.c driver core: Don't probe devices after bus_type.match() probe deferral 2022-09-08 12:28:07 +02:00
devcoredump.c
devres.c
devtmpfs.c devtmpfs regression fix: reconfigure on each mount 2022-01-20 09:13:13 +01:00
driver.c
firmware.c
hypervisor.c
init.c init: Initialize noop_backing_dev_info early 2022-06-22 14:22:02 +02:00
isa.c
map.c
memory.c mm/hwpoison: avoid the impact of hwpoison_filter() return value on mce handler 2022-07-12 16:35:05 +02:00
module.c
node.c drivers/base: fix userspace break from using bin_attributes for cpumap and cpulist 2022-08-31 17:16:35 +02:00
pinctrl.c
platform-msi.c
platform.c
property.c device property: Allow error pointer to be passed to fwnode APIs 2022-06-09 10:22:47 +02:00
soc.c
swnode.c software node: fix wrong node passed to find nargs_prop 2022-01-27 11:03:46 +01:00
syscore.c
topology.c drivers/base: fix userspace break from using bin_attributes for cpumap and cpulist 2022-08-31 17:16:35 +02:00
trace.c
trace.h
transport_class.c