linux-yocto/drivers/base
Rafael J. Wysocki 2b6e3546fb PM: runtime: Take active children into account in pm_runtime_get_if_in_use()
commit 51888393cc upstream.

For all practical purposes, there is no difference between the situation
in which a given device is not ignoring children and its active child
count is nonzero and the situation in which its runtime PM usage counter
is nonzero.  However, pm_runtime_get_if_in_use() will only increment the
device's usage counter and return 1 in the latter case.

For consistency, make it do so in the former case either by adjusting
pm_runtime_get_conditional() and update the related kerneldoc comments
accordingly.

Fixes: c111566bea ("PM: runtime: Add pm_runtime_get_if_active()")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: 5.10+ <stable@vger.kernel.org> # 5.10+: c0ef3df8dbae: PM: runtime: Simplify pm_runtime_get_if_active() usage
Cc: 5.10+ <stable@vger.kernel.org> # 5.10+
Link: https://patch.msgid.link/12700973.O9o76ZdvQC@rjwysocki.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-28 16:30:53 +02:00
..
firmware_loader
power PM: runtime: Take active children into account in pm_runtime_get_if_in_use() 2025-08-28 16:30:53 +02:00
regmap regmap: fix potential memory leak of regmap_bus 2025-08-01 09:48:40 +01:00
test
arch_numa.c arch_numa: Restore nid checks before registering a memblock with a node 2024-12-14 20:03:31 +01:00
arch_topology.c
attribute_container.c
auxiliary_sysfs.c
auxiliary.c
base.h driver core: fix potential NULL pointer dereference in dev_uevent() 2025-05-02 07:59:29 +02:00
bus.c driver core: fix potential NULL pointer dereference in dev_uevent() 2025-05-02 07:59:29 +02:00
cacheinfo.c
class.c driver core: class: Fix wild pointer dereferences in API class_dev_iter_next() 2025-02-08 09:57:58 +01:00
component.c
container.c
core.c driver core: fix potential NULL pointer dereference in dev_uevent() 2025-05-02 07:59:29 +02:00
cpu.c x86/bugs: Add a Transient Scheduler Attacks mitigation 2025-07-10 16:05:14 +02:00
dd.c driver core: introduce device_set_driver() helper 2025-05-02 07:59:28 +02:00
devcoredump.c
devres.c drivers: base: devres: Allow to release group on device release 2025-04-20 10:15:24 +02:00
devtmpfs.c
driver.c
firmware.c
hypervisor.c
init.c
isa.c
Kconfig
Makefile
map.c
memory.c
module.c drivers: base: handle module_kobject creation 2025-05-09 09:50:52 +02:00
node.c
physical_location.c
physical_location.h
pinctrl.c
platform-msi.c platform-msi: Add msi_remove_device_irq_domain() in platform_device_msi_free_irqs_all() 2025-06-27 11:11:27 +01:00
platform.c
property.c
soc.c
swnode.c software node: Correct a OOB check in software_node_get_reference_args() 2025-06-27 11:11:34 +01:00
syscore.c
topology.c topology: Keep the cpumask unchanged when printing cpumap 2025-01-17 13:40:53 +01:00
trace.c
trace.h
transport_class.c