linux/drivers/net/pse-pd
Kory Maincent dda3529d2e net: pse-pd: Fix enabled status mismatch
PSE controllers like the TPS23881 can forcefully turn off their
configuration state. In such cases, the is_enabled() and get_status()
callbacks will report the PSE as disabled, while admin_state_enabled
will show it as enabled. This mismatch can lead the user to attempt
to enable it, but no action is taken as admin_state_enabled remains set.

The solution is to disable the PSE before enabling it, ensuring the
actual status matches admin_state_enabled.

Fixes: d83e13761d ("net: pse-pd: Use regulator framework within PSE framework")
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20241002121706.246143-1-kory.maincent@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-10-04 13:14:18 -07: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 spelling mistake "availables" -> "available" 2024-07-11 10:00:35 -07:00
pse_core.c net: pse-pd: Fix enabled status mismatch 2024-10-04 13:14:18 -07: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: Support reset-gpios 2024-08-26 13:24:11 -07:00