๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #26420

Re: [PATCH net-next 1/8] dt-bindings: pse-pd: ti,tps23881: Add VDD and VPWR regulator supply

#26420
From: netdev-bot+sashiko
Date: Thu, 03 Dec 2026 14:21
118 lines
12467 bytes
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
Technical Details
Message-ID: <179630770202.3146.9149495969686010628@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376654-linux-kernel-netdev=dewy.ru
References: <20261202-feat_tps23861-v1-1-7d8320369817@bootlin.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376654-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
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
Organization: Usenet Network
Message-ID: <179630770202.3146.9149495969686010628@kernel.org>
References: <20261202-feat_tps23861-v1-1-7d8320369817@bootlin.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2512570"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:K9YOS6nZjUs55c4qZEcXvZdnoCk= sha256:SFGh2KCtdgvLqC0P/kq9pJPiwdoq8QhCLgx4LoAptdE=
	sha1:0+E2JDm22EOHgR+v93Lr6VhGE+c= sha256:V04ssXBLGAp0ZMhvHVpJWjslLixdA3akwQhbVk850Fs=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id D3A14117979; Thu,  3 Dec 2026 17:22:17 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.64
X-Spam-Status: No, score=-3.64 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id HIzPDHoZSbb6;
	Thu,  3 Dec 2026 17:22:15 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-376654-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id A4DD611790E; Thu,  3 Dec 2026 17:22:06 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 1D5F02CA70; Thu,  3 Dec 2026 14:21:52 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1796307709;
	b=5hjZ4feZ7BY/9jFoVwb5kM9uZfB/MqOZ2lj79yhd+SMGGYxSA3WPwrRddRvNj44nU6Oz
	 g4CvbtLueV7REVX59g0VYtTiT+Pnc6gwRWLbxLaYv5jMJCIEsOIHxE1poiOqhuHKtvF3s
	 L5WAGAHbFvQlFRwO+tCi9ad/ZBM02g5pVMqXCTQWrBxyfmTlRrZDpLq4O6h3J1O8zD6WM
	 58CY9qaE6D476lm4cLU57YvlVvSSQEJZ/U/o0Y8x95Bzkpuafsy2dVvANTUUm6EBrzaAq
	 /aF17BJfpJ4I0vyRuUH6WfKC+4v5ludOTlbhdeYl+gjV/dyaMcGrJnJ2dijIpdeT/qQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796307709;
	h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc:
	 Date:Message-ID:In-Reply-To:References:X-sashiko-severity:
	 Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version;
	bh=cYJZZHam5AtSNhEQLq2upinWn6dSTwJB3gxtDel0g78=;
	b=x4v2+LGrGiJT5w4CTzB9eJ85r+E8cUlK4we0MVt1W+QlsXBs5aJZ7UAGpQ0PD+PV+apx
	 SnFgZCqPrti5mthQX0RCbVor2G5VY+6+3OcKNdpuPicUQI09ELeen+WYrJnLrs0i1xL5k
	 /pKAW39mARReLHRJAOp/YpdLiJyYiejeSiW8a08NfGF+nrl4iB/8G2CPpvIKuU/Kso6Az
	 6Tx5MXFksRdMjlN+IW7lEpx11LZS9Zf1B5JmR4fwJ/WyD2D12djiY4SvwZuI0qUpfhBO8
	 Qc8BqIXJ9QURgYNLYLa/vrrcNK6jkKXXeuDcPNCpK4LgzMvftBH/u6IF7BCTowG6HmA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ainsbydC;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id B5A6A606A33D;
	Thu,  3 Dec 2026 14:21:49 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ainsbydC
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796307703;
	b=cRiIZ60ycbUnf25Dv5xlL621PjFiUy5UwASU8SQzGgPPzs/yzDmYQ3BIUmm+57GkT6d2
	 WBUjnPUftxOUNkWrzUA3Glf54Hsdpta6oZiiK2sTMLqnn5jplGKLUKWcAokV0ah4Ld9R8
	 1Ad2fpqfm5+JGIqJatbmx6xvcp0CdQxBpyLOqsPlWKTGkw2l1Kl5A11rdj/xbAwSU+Wsb
	 XjeKuWZKA1qQrLH78N8fIWsMpSpqJTi4xO2OdxyOJPui0WRRvlExz60ZYtJT6lQmGF3Tw
	 sLTmvIYkprZGkSYU6uyXzQ/Ebhey1K+vb5Ulo5twHMkt5CAxI3BJ0+V6yga/z1b9AUw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796307703;
	h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID:
	 In-Reply-To:References:X-sashiko-severity:Content-Type:
	 Content-Transfer-Encoding:MIME-Version;
	bh=cYJZZHam5AtSNhEQLq2upinWn6dSTwJB3gxtDel0g78=;
	b=u3kB2mTKuJAR02QFQbkhIDK66IlR9C7x7jEQWGbhNS6bakuCTvzsIyz0+IcRKK9c/1O+
	 13mptChp9Q2Ej+vIWraG/6AZG/eaSTxcauo9mTDfsEE6fKhvbmpIsUraZ4/M0o9O+zITC
	 QmuKRAD9uwaR07/YxKpLFghQ58LdrnDvWQyhRju3TWQMk6iEjMBq7kHEGlqMdpnxu2BHW
	 N1tP5SyZf99FlS0i3xY+9pX44E4uQMAjzSjh8BnJSwJQ6QIPJPHFgDW5fsr3Hr+UuUioq
	 DkRtJ59M9cSpOk7QYcOD73l6SNm0Bm2ygxoZiPlHdT+HOoDZDwQbGx1RkEZ65lSxsNQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ainsbydC;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id D33E0606A322;
	Thu,  3 Dec 2026 14:21:43 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75C651F008A0;
	Thu,  3 Dec 2026 14:21:42 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796307703;
	bh=cYJZZHam5AtSNhEQLq2upinWn6dSTwJB3gxtDel0g78=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=ainsbydCNT3xCFk55DNw/Mc8Zj/iEIzEO9yuTj28cNWYjJcK2J5DS+9S8sn9krGBu
	 7piY9JWB2BkKJgRBzxrFvehDbKG9fbWF+/hSOyvGxA3/wIMnTBwfse8/ywWlwoXxFy
	 LSsDDouskGoGZtJ3+3H2Zyn9YNnBoiWUGbRPjKNf9dYjzvo3DVZ73xrfE7Tz86b6J8
	 o623xGqUTEgJbPL0xB1E9f1DU/LGrVR0qMQxaBtMQisd7Ms8S5PAmmvuMJXX5fW6Gb
	 nnTuSeDEDgBtbXJonzD/0GorEy3YB7QGzVpDOf6haxa5hOJmhE/M6A6AHt3OkDtEzm
	 /FSGQyIqdq/iQ==
X-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
X-In-Reply-To: <20261202-feat_tps23861-v1-1-7d8320369817@bootlin.com>
X-sashiko-severity: Medium
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list