diff options
| author | Armin Wolf <[email protected]> | 2025-06-27 20:51:22 +0000 |
|---|---|---|
| committer | Ilpo Järvinen <[email protected]> | 2025-07-07 12:19:46 +0000 |
| commit | 3ebed2fddf6fac5729ffc8c471c87d111b641678 (patch) | |
| tree | c997d6a01f0f7d4e4a561c5dd74fc101ee3d5cf6 /rust/helpers/task.c | |
| parent | platform/x86: alienware-wmi-wmax: Fix `dmi_system_id` array (diff) | |
| download | kernel-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
