From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 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== 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== 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 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) 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 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75C651F008A0; Thu, 3 Dec 2026 14:21:42 +0000 (UTC) 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== Subject: Re: [PATCH net-next 1/8] dt-bindings: pse-pd: ti,tps23881: Add VDD and VPWR regulator supply 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 Date: Thu, 03 Dec 2026 14:21:42 +0000 Message-ID: <179630770202.3146.9149495969686010628@kernel.org> In-Reply-To: <20261202-feat_tps23861-v1-1-7d8320369817@bootlin.com> References: <20261202-feat_tps23861-v1-1-7d8320369817@bootlin.com> X-sashiko-severity: Medium Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 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