linux-yocto/drivers/net/pse-pd
Kory Maincent 4abbe664a1 net: pse-pd: Fix deadlock in current limit functions
commit 488fb6effe upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-02-27 04:30:24 -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: pd692x0: Fix power limit retrieval 2025-02-27 04:30:17 -08:00
pse_core.c net: pse-pd: Fix deadlock in current limit functions 2025-02-27 04:30:24 -08:00
pse_regulator.c net: pse-pd: Use regulator framework within PSE framework 2024-04-18 18:27:39 -07:00
tps23881.c net: pse-pd: tps23881: Fix power on/off issue 2025-01-09 13:33:38 +01:00