From: netdev-bot+sashiko@kernel.org
To: kory.maincent@bootlin.com
Cc: o.rempel@pengutronix.de, andrew+netdev@lunn.ch,
davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, roman@damex.org,
maxime.chevallier@bootlin.com, thomas.petazzoni@bootlin.com,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Phil.Edworthy@addsecure.com, devicetree@vger.kernel.org
Subject: Re: [PATCH net-next 1/8] dt-bindings: pse-pd: ti,tps23881: Add VDD and VPWR regulator supply
Date: Thu, 03 Dec 2026 14:21:42 +0000 [thread overview]
Message-ID: <179630770202.3146.9149495969686010628@kernel.org> (raw)
In-Reply-To: <20261202-feat_tps23861-v1-1-7d8320369817@bootlin.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue(s) to consider.
Critical: 0 · High: 0 · Medium: 1 · Low: 0
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] The binding adds a controller-level `vpwr-supply`
(ti,tps23881.yaml lines 36-37).
--
dt-bindings: pse-pd: ti,tps23881: Add VDD and VPWR regulator supply
This adds vdd-supply and vpwr-supply properties to the TPS23881 binding.
They describe the 3.3V VDD supply and the 54V VPWR supply of the chip.
> diff --git a/Documentation/devicetree/bindings/net/pse-pd/ti,tps23881.yaml b/Documentation/devicetree/bindings/net/pse-pd/ti,tps23881.yaml
> index 0b3803f647b7b..6e1438e5eb32a 100644
> --- a/Documentation/devicetree/bindings/net/pse-pd/ti,tps23881.yaml
> +++ b/Documentation/devicetree/bindings/net/pse-pd/ti,tps23881.yaml
> @@ -30,6 +30,12 @@ properties:
> reset-gpios:
> maxItems: 1
>
> + vdd-supply:
> + description: Regulator that provides 3.3V VDD power supply.
> +
> + vpwr-supply:
> + description: Regulator that provides 54V VPWR power supply.
[Severity: Medium]
Will this controller-level vpwr-supply get mixed up with the per-PI
vpwr-supply? pse-controller.yaml already defines a property with the same
name under pse-pis/pse-pi@N, and those PI nodes are children of this same
TPS23881 node.
The regulator core's DT lookup falls back between these two levels, so
each property can resolve to the other.
First case: the driver lookup picks up a PI's supply. Later in this
series, "net: pse-pd: tps23881: Add support for Vdd and Vpwr power
supply" adds this to tps23881_i2c_probe():
static const char * const regulators[] = { "vdd", "vpwr" };
...
ret = devm_regulator_bulk_get_enable(dev, ARRAY_SIZE(regulators),
regulators);
Take a DT with no controller-level vpwr-supply but with PI nodes that
carry vpwr-supply = <&vpwr1>. Existing DTs and this binding's own example
look like that. The lookup goes through of_get_regulator():
regnode = of_parse_phandle(node, prop_name, 0);
if (regnode)
return regnode;
regnode = of_get_child_regulator(dev->of_node, prop_name);
of_get_child_regulator() then searches the children recursively:
for_each_child_of_node(parent, child) {
regnode = of_parse_phandle(child, prop_name, 0);
if (regnode)
goto err_node_put;
regnode = of_get_child_regulator(child, prop_name);
...
The search goes channels -> channel@N -> pse-pis -> pse-pi@0 and returns
the first PI's &vpwr1 instead of a dummy regulator.
In that case the TPS23881 driver would enable that PI's supply and keep
it enabled through devm while the driver is bound. Probe would also
defer until that regulator registers.
Second case: PIs inherit the controller's supply. In
devm_pse_pi_regulator_register(), the PI regulator is registered with
the TPS23881 device as its parent:
rinit_data->supply_regulator = "vpwr";
rconfig.dev = pcdev->dev;
...
rconfig.of_node = pcdev->pi[id].np;
regulator_resolve_supply() looks in the PI node first and then falls
back to the parent device:
r = regulator_dt_lookup(&rdev->dev, rdev->supply_name);
if (!r)
r = regulator_dev_lookup(dev, rdev->supply_name);
A PI without its own vpwr-supply (it is optional in pse-controller.yaml)
would then be attached to the new chip-level VPWR rail. That changes the
supply-based PSE power-domain grouping.
Is that intended? If it is, should the binding say how the two
same-named properties interact? The example could also show both
properties together.
Could the consuming driver also avoid the child-node fallback, for
example by checking that vpwr-supply exists on the controller node
before requesting it?
> +
> channels:
> description: |
> Defines the 8 physical delivery channels on the controller that can
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261202-feat_tps23861-v1-0-7d8320369817%40bootlin.com
next prev parent reply other threads:[~2026-12-03 14:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 14:08 [PATCH net-next 0/8] net: pse-pd: Preparation series for supporting the TPS23861 controller Kory Maincent
2026-12-02 14:08 ` [PATCH net-next 1/8] dt-bindings: pse-pd: ti,tps23881: Add VDD and VPWR regulator supply Kory Maincent
2026-12-03 14:21 ` netdev-bot+sashiko [this message]
2026-12-02 14:08 ` [PATCH net-next 2/8] net: pse-pd: Add helpers to convert between mW and uA Kory Maincent (AddSecure)
2026-12-02 14:08 ` [PATCH net-next 3/8] net: pse-pd: si3474: Use new mW/uA conversion helpers Kory Maincent (AddSecure)
2026-12-02 14:08 ` [PATCH net-next 4/8] net: pse-pd: tps23881: " Kory Maincent (AddSecure)
2026-12-02 14:08 ` [PATCH net-next 5/8] net: pse-pd: tps23881: Clean up register defines and comments Kory Maincent (AddSecure)
2026-12-02 14:08 ` [PATCH net-next 6/8] net: pse-pd: tps23881: Factor out power policy configuration Kory Maincent (AddSecure)
2026-12-02 14:08 ` [PATCH net-next 7/8] net: pse-pd: tps23881: Use fsleep instead of mdelay Kory Maincent (AddSecure)
2026-12-02 14:08 ` [PATCH net-next 8/8] net: pse-pd: tps23881: Add support for Vdd and Vpwr power supply Kory Maincent (AddSecure)
2026-12-03 14:21 ` netdev-bot+sashiko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179630770202.3146.9149495969686010628@kernel.org \
--to=netdev-bot+sashiko@kernel.org \
--cc=Phil.Edworthy@addsecure.com \
--cc=andrew+netdev@lunn.ch \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@kernel.org \
--cc=kory.maincent@bootlin.com \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maxime.chevallier@bootlin.com \
--cc=netdev@vger.kernel.org \
--cc=o.rempel@pengutronix.de \
--cc=pabeni@redhat.com \
--cc=robh@kernel.org \
--cc=roman@damex.org \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox