mirror-linux/drivers/net/pse-pd
Kory Maincent 488fb6effe net: pse-pd: Fix deadlock in current limit functions
Fix a deadlock in pse_pi_get_current_limit and pse_pi_set_current_limit
caused by consecutive mutex_lock calls. One in the function itself and
another in pse_pi_get_voltage.

Resolve the issue by using the unlocked version of pse_pi_get_voltage
instead.

Fixes: e0a5e2bba3 ("net: pse-pd: Use power limit at driver side instead of current limit")
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Link: https://patch.msgid.link/20250212151751.1515008-1-kory.maincent@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-02-13 10:00:39 -08:00
..
Kconfig net: pse-pd: Kconfig: Fix missing firmware loader config select 2024-06-21 11:29:52 +01:00
Makefile net: pse-pd: Add TI TPS23881 PSE controller driver 2024-04-18 18:27:39 -07:00
pd692x0.c net: pse-pd: Remove is_enabled callback from drivers 2025-01-14 13:56:32 +01:00
pse_core.c net: pse-pd: Fix deadlock in current limit functions 2025-02-13 10:00:39 -08:00
pse_regulator.c net: pse-pd: Remove is_enabled callback from drivers 2025-01-14 13:56:32 +01:00
tps23881.c net: pse-pd: tps23881: Add support for power limit and measurement features 2025-01-14 13:56:33 +01:00