aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/task.c
diff options
context:
space:
mode:
authorArmin Wolf <[email protected]>2025-06-27 20:51:22 +0000
committerIlpo Järvinen <[email protected]>2025-07-07 12:19:46 +0000
commit3ebed2fddf6fac5729ffc8c471c87d111b641678 (patch)
treec997d6a01f0f7d4e4a561c5dd74fc101ee3d5cf6 /rust/helpers/task.c
parentplatform/x86: alienware-wmi-wmax: Fix `dmi_system_id` array (diff)
downloadkernel-3ebed2fddf6fac5729ffc8c471c87d111b641678.tar.gz
kernel-3ebed2fddf6fac5729ffc8c471c87d111b641678.zip
power: supply: core: Add power_supply_get/set_property_direct()
Power supply extensions might want to interact with the underlying power supply to retrieve data like serial numbers, charging status and more. However doing so causes psy->extensions_sem to be locked twice, possibly causing a deadlock. Provide special variants of power_supply_get/set_property() that ignore any power supply extensions and thus do not touch the associated psy->extensions_sem lock. Suggested-by: Hans de Goede <[email protected]> Signed-off-by: Armin Wolf <[email protected]> Acked-by: Sebastian Reichel <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions