Re: [PATCH net-next 8/8] net: pse-pd: tps23881: Add support for Vdd and Vpwr power supply

From: Kory Maincent

Date: Thu Dec 03 2026 - 10:35:13 EST




On 12/3/26 15:21, netdev-bot+sashiko@xxxxxxxxxx wrote:
Thank you for your contribution! Sashiko AI review found 3 potential
issue(s) to consider.

Critical: 0 · High: 0 · Medium: 2 · Low: 1

If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).

- [Medium] In drivers/net/pse-pd/tps23881.c, tps23881_i2c_probe() now
calls devm_regulator_bulk_get_enable(dev, 2, {"vdd", "vpwr"}) on the…
- [Medium] tps23881_i2c_probe() now powers the TPS2388x itself with
devm_regulator_bulk_get_enable() (line 1443), but the only wait after…
- [Low] In tps23881_i2c_probe() the devm-managed regulator enable (line
1443) is registered before the reset GPIO (devm_gpiod_get_optional at…

--

net: pse-pd: tps23881: Add support for Vdd and Vpwr power supply

This commit adds handling for the Vdd and Vpwr supplies to the TPS23881
PSE controller driver. tps23881_i2c_probe() now gets and enables both
supplies with devm_regulator_bulk_get_enable() before the reset GPIO is
requested.

diff --git a/drivers/net/pse-pd/tps23881.c b/drivers/net/pse-pd/tps23881.c
index 5736f052732a2..759b3039ce21c 100644
--- a/drivers/net/pse-pd/tps23881.c
+++ b/drivers/net/pse-pd/tps23881.c
@@ -1419,6 +1419,7 @@ static int tps23881_setup_irq(struct tps23881_priv *priv, int irq)
static int tps23881_i2c_probe(struct i2c_client *client)
{
+ static const char * const regulators[] = { "vdd", "vpwr" };
struct device *dev = &client->dev;
const struct tps23881_info *info;
struct tps23881_priv *priv;
@@ -1439,6 +1440,12 @@ static int tps23881_i2c_probe(struct i2c_client *client)
if (!priv)
return -ENOMEM;
+ ret = devm_regulator_bulk_get_enable(dev, ARRAY_SIZE(regulators),
+ regulators);
+ if (ret)
+ return dev_err_probe(dev, ret,
+ "Failed to enable regulators\n");
+

[Severity: Medium]
On device trees with no controller-level vpwr-supply, which regulator does
the "vpwr" consumer end up with?

Already reply to this on first patch.

[Severity: Medium]
Now that probe can power up the chip itself, is there still a power-on
delay when no reset GPIO is present? The only wait after power-on is
inside the reset block later in tps23881_i2c_probe():

This is right. I will move the msleep outside of the reset.

[Severity: Low]
What state is the RESET pin in when the supplies are turned off during
teardown?

The RESET pin is rated −0.3 to 4 V absolute rating voltage so I think it's fail safe.

--
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com