Article View: linux.kernel.netdev
Article #5526Re: [PATCH net-next v2 1/5] dt-bindings: net: maxlinear: add MxL86211C VDDP supply
From: netdev-bot+sashiko
Date: Tue, 20 Oct 2026 13:36
Date: Tue, 20 Oct 2026 13:36
134 lines
12582 bytes
12582 bytes
Thank you for your contribution! Sashiko AI review found 2 potential
issue(s) to consider.
Critical: 0 · High: 0 · Medium: 1 · 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] The binding defines `vddp-supply` as "Regulator supplying the
VDDP pin", which powers the MDIO/MDC/MDINT pads, and makes it…
- [Low] In Documentation/devicetree/bindings/net/maxlinear,gpy2xx.yaml,
the `else: properties: vddp-supply: false` branch (lines 35-37) can…
--
dt-bindings: net: maxlinear: add MxL86211C VDDP supply
This commit adds a vddp-supply property to the MaxLinear GPY2xx binding.
The voltage of that supply selects 1.8 V or 3.3 V for the MDIO, MDC and
MDINT pads. A top-level select restricts the schema to the MxL86211C PHY
ID, and an if/then/else makes the supply required for that PHY.
> diff --git a/Documentation/devicetree/bindings/net/maxlinear,gpy2xx.yaml b/Documentation/devicetree/bindings/net/maxlinear,gpy2xx.yaml
> index 8a3713abd1ca9..a0dfb6192d81b 100644
> --- a/Documentation/devicetree/bindings/net/maxlinear,gpy2xx.yaml
> +++ b/Documentation/devicetree/bindings/net/maxlinear,gpy2xx.yaml
> @@ -10,10 +10,38 @@ maintainers:
> - Andrew Lunn <andrew@lunn.ch>
> - Michael Walle <michael@walle.cc>
>
> +select:
> + properties:
> + compatible:
> + contains:
> + const: ethernet-phy-idc133.5400
> + required:
> + - compatible
> +
> allOf:
> - $ref: ethernet-phy.yaml#
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: ethernet-phy-idc133.5400
> + required:
> + - compatible
> +
> + then:
> + required:
> + - vddp-supply
> +
> + else:
> + properties:
> + vddp-supply: false
[Severity: Low]
Can this else branch ever be evaluated?
The new top-level select applies the schema only to nodes whose
compatible contains ethernet-phy-idc133.5400. The if above tests the
same predicate, so whenever the schema runs, only the then branch runs.
No other binding references this schema. Other GPY2xx nodes are not
selected at all, so "vddp-supply: false" is never enforced for them.
The later patch in the series, "dt-bindings: net: maxlinear: add
MxL86211C lane mapping support", adds "maxlinear,lane-asp-map: false" to
this same else branch. That constraint would not be enforced either.
>
> properties:
> + vddp-supply:
> + description: |
> + Regulator supplying the VDDP pin. Its voltage configures the MDIO,
> + MDC, and MDINT pad voltage and must be either 1.8 V or 3.3 V.
> +
[Severity: Medium]
This makes vddp-supply mandatory for the MxL86211C and describes it as
the supply for the MDIO, MDC and MDINT pads. Does anything in the series
enable this supply?
The later driver patch, "net: phy: mxl-gpy: add MxL86211C VDDP supply",
does only two things with the regulator: it gets it, and it reads its
voltage.
drivers/net/phy/mxl-gpy.c:mxl86211c_probe() {
...
vddp = devm_regulator_get(dev, "vddp");
...
}
drivers/net/phy/mxl-gpy.c:mxl86211c_configure_mdio_voltage() {
...
voltage = regulator_get_voltage(vddp);
...
}
Neither function calls regulator_enable() or devm_regulator_get_enable(),
so rdev->use_count stays 0 for this rail. Take a board where VDDP can be
switched and is not marked regulator-always-on. Could
regulator_late_cleanup() turn the rail off there?
drivers/regulator/core.c:regulator_late_cleanup() {
...
if (rdev->use_count)
goto unlock;
...
}
On DT systems have_full_constraints() is true, so the rail would be
disabled and the PHY would lose power to its MDIO pads.
regulator-boot-on does not prevent this, because late cleanup only checks
always_on.
If the rail is off at boot, nothing ever turns it on. The MDIO accesses
in mxl86211c_probe() and gpy_probe() would then fail.
Other PHY drivers handle this by enabling the supply. For example,
qcom/at803x.c calls devm_regulator_get_enable_optional(..., "vddio").
Should the MxL86211C driver do the same?
The binding example uses a regulator-fixed with no GPIO, which cannot be
switched off, so the example does not show this problem.
[ ... ]
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261016112033.949026-1-robert.marko%40sartura.hr
Technical Details
Message-ID:
<179250337860.3135.8235082668261124184@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-349319-linux-kernel-netdev=dewy.ruReferences:
<20261016112033.949026-1-robert.marko@sartura.hr>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-349319-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v2 1/5] dt-bindings: net: maxlinear: add MxL86211C VDDP supply Date: Tue, 20 Oct 2026 13:36:18 +0000 Organization: Usenet Network Message-ID: <179250337860.3135.8235082668261124184@kernel.org> References: <20261016112033.949026-1-robert.marko@sartura.hr> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3866178"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:U2iJj6WHcMfHN6/iZmMe+3pcjnE= sha256:Vszubtoaz+6RQjzjohRCecMA+PjaXwZ95GsePvNK7lw= sha1:vh/dZocXTTCmpf375ByQ9qWFLWk= sha256:4hwBNkV66DMQm1UNcXFXFMAQiElxYt4vOdzX/FzZnLo= 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 7E31C110D20; Tue, 20 Oct 2026 16:51:23 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.629 X-Spam-Status: No, score=-2.629 tagged_above=-9999 required=6.31 tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.329, 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 25Kcrttj6cvH; Tue, 20 Oct 2026 16:51:20 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-349319-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id F1BF9110D1D; Tue, 20 Oct 2026 16:51:11 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 81DED62A4D; Tue, 20 Oct 2026 13:36:39 +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=1792503386; b=vApGSGR5vf4CNGh67xIEIO/7Vww70N9fL+t5AnQDssMms0SCBi6JcG972km+Xa/tDU08 twQe0JLUgC1WoxtZyAjkHmC99ypFJkz45th7C2WjC2og7IKLqKMU7A7Pf91pyhK79Tfil X2JLxNc4I4EB1RB/mmX0IGz/R1qybEAkAdDgSpZ79hjNxsKKWgQh74Qp7H8X7o8f1ZygL QMEr1oxNqQ4CObcwKm4pscgubTIW7teM6xDPGLku9Wke4jQ0GDqxB4VTx9v/Ukwj4jRco GUf9ZurEAvekFDS6K06ZXUsdJxXSloqIj9hPAppqCCs/bVTtFu8NhkbLA1ly8lqDlOw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792503386; 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=4g2T0lgFGixZisGN9hGL+MJinxnor9rjQW+5QYUQkr0=; b=cOA8eJlW0G3Fy29MVE/7BHdOmauatQ5ptg5oEBFqhNZTOjLDvnjZaxeG5bq/HQIBN6hB 3pgHA9KuOcKm3Po0+5nayqygFqaYuBQ6X6Htyh94G+0PRHiPEBL0DFp1tk2WWt3aVQv/K H0kg6luFeg7S3B354i+l86IpkRRe0jp6N+w4ABQ5jVDLAu+RdAH3IJ4SwfoJMhIjCNluu 3T5E2kSeQQlSnSSUdBgkBCiT9i/ctsLo40UqM3S5rvXH5j1DPc4bxWRvm3sG7sWucnSsE ibcK8AgtzYbQJD3iizP93j40lYFhhjNaDJTmXWhHTtvqwl0zXYTDI2v1qO8wOYMLmbQ== 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=GIr6uhWV; 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 AC4C060A2610; Tue, 20 Oct 2026 13:36:26 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=GIr6uhWV 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=1792503380; b=veHk/OxSx18G8Nigg4Mq5rTp0Y31dNSoisVZuDxszWZCDgeBXh+I0Bduq8OUetkfENgi 8ciYQq+RziEtWZ+Nw6BtlTZY7sapRvWeQgT3YbAw1Sm0W9/oZ7rkkt6/xlIgcrtCpCS+n lyY+8lriK4p8cKX3FJDmP855SqAkeaJhHGuy1QwT93PVkCsevtZk1XoD6BWgyH9oGmgBh plrRTM59pXuibugVhCvP437pBm6MetICVn99dpcwnB6mYB107MRudNQQ3QYcVEwek6XD7 963iK5jqY7FUd7ZxEwM+bCL/1JFbmWfDN+SeenHSIh6M+Wq03irrFOzTHIPx6Nttz5g== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792503380; 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=4g2T0lgFGixZisGN9hGL+MJinxnor9rjQW+5QYUQkr0=; b=OZiEe11DdXsuwjFpIJ4JDJ/dR6wl8R0KHFl76yPua6S8Cx4ANt33zae+79j1Y8eAa38U 0HOkDsVa3xZ04nY+LDmaXkpbLqfXyY2cMaz1RqYEw3UfclNcJZIcA0X1UzL6VqCfx0KTq 3Br3auCGI1VcIU4SGv3IvTzj95HVyvIx1UzB2yMgvPe7rVdJAJ9+WlzaZGAeZzOZXdGVs ciazn/UFWUEuuRuuCTju7KGFB+9712UJxN//uD8q1X5ZeriB9DJJXylXwhEfiQYwAcsY/ n2pqfzG+FZjhAHhd8QAV/BkGWNBXhKhSRD7VBRa9VofAeYuphDhivcHejdt/QmkXUvA== 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=GIr6uhWV; 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 87B19606A319; Tue, 20 Oct 2026 13:36:20 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E4C21F000C4; Tue, 20 Oct 2026 13:36:19 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792503380; bh=4g2T0lgFGixZisGN9hGL+MJinxnor9rjQW+5QYUQkr0=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=GIr6uhWVNcBMpHtrZ24bziY/EqfUphYURI8vuOYLpUJff4rJPberi/K2WtlIX+uEs CgtHS39Hs+sULa7s3hjJml1aUMi2tOM1kmtyvoWo6Yx1VDaqVRsiRZ9V7quT+yznnR s90d/Q7GSDDwNJTSgj+CXpyBAuvM1bg3R+XFvyIhTPNqIknkwYRaP7pvbNoexCl2V3 TN2nOhCfUnZSsS8Shsncyv7me8SHMEdc3I+RQk0hMIKYlqI3fkXY0rmZW9ymNfljuH ZBrrfPtGA3UfD9egHmdiho6LuTrRi2Ll72NTbconz7XiLzgpQErXQ2fNgeIqWdqmQl /1MDwp1WHVhKQ== X-Cc: 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, lxu@maxlinear.com, hkallweit1@gmail.com, linux@armlinux.org.uk, michael@walle.cc, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, lrosu@maxlinear.com, luka.perkov@sartura.hr X-In-Reply-To: <20261016112033.949026-1-robert.marko@sartura.hr> 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