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=1796486622; b=SRP9u8g7aS+uPZyHEVbJ2UQYcH3MrrdMBlI39XP0LzdebZz/2kS4vog1y1srmZy7wr+u 5ch8j7ihskqISVc7rVB+u5yqr1jNGEIrfGwBoE9dG7jJ0PxiZXb4fh4W0Nvt2/8F7r0G+ L8+Na85jUhZSTFnWu/Q8Ex9nbfod2LwT/jyOh4o7bxb8WiCNHPotvAFUosY4OnMrR0cus F+xN1SwGP/9swoKFkzMCJv8yK9cQWU6tfNA70M7eqw8PS8fnMnib/PCWNcMIkbgy44BNN +WKGDMRaeDZNKLhCS79hBFFxBIifXZCHMWv5tcNGsm8E/B2wxpT7bZf8LSeNzJvYDgw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796486622; 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=mOD7rkUSs3TPEJip6mNRXYUPutXHdQ0+w5wXurLkKhk=; b=3pKZFXFzdF3aa5tMcrMrsbyNEq171zz9DquPvUydWg/YH5/uDneDV8DLIfOMQn4VKZSE pTgEyi6GMAouUhawZ7zJMie8DmynSKlLvHLGocmIs0ZxJqnTDUdXZxp1XNTT/DxTj00at 50qY0Bmz6/iCSgf00G5Or1/SDsTV6xVDhjZUDIe38orksdCw63QPOEJ/D6PBnM1KrUyKu jtITYYEpR3ktBhM/uZn06uzgx8eTIz46m4up59eUWPhSnzi7KXg8yFdJCFCyKtjNFxt1H 6+PGL2XlJ3s0qjc/r2fElxoAG/knpaMdU1bvgM2rX5o3FGhF5VdZgb6hWpke/UL+KQA== 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=TmAB3Twd; 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 F0DBA606A31F; Sat, 5 Dec 2026 16:03:41 +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=TmAB3Twd Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F9E21F0092B; Sat, 5 Dec 2026 16:03:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796486621; bh=mOD7rkUSs3TPEJip6mNRXYUPutXHdQ0+w5wXurLkKhk=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=TmAB3Twd83Qp3Jo9C8zTVwuMwM/QxuQlSzg9p2edBkXDsw3st1BBtubx7I3FwIzm8 ScE83FdY8pww0cpubGGnXAd4YNt4rBUCClJBQ78GATOHUlBAdJsAHW3Tq5pjPSjkPj D+YSVM0pACWnWkt0zwQTAViyfB9IIEoGr9kMRpBJqM4W/YKcnUolff2xySIMJIfUeF 3xRQndYF60CK3WmOgiYZ9epryaSCzc+dLk+Yz0tKlYSS2z1CTniWrJArgG9ZbjBbV1 6iw9g7VRROOrRBSiWZXLn9Mv2SvmOKEoGqC0Bx6rRk67deJCyofwp5U/y2wU3SjoLI AeFNjrzaOoP3w== Subject: Re: [PATCH net-next v5 1/2] dt-bindings: net: Add Synaptics SL2610 DWMAC From: netdev-bot+sashiko@kernel.org To: jszhang@kernel.org Cc: andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, sebastian.hesselbarth@gmail.com, maxime.chevallier@bootlin.com, mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, richard.genoud@bootlin.com Date: Sat, 05 Dec 2026 16:03:40 +0000 Message-ID: <179648662010.3146.18425277200344339589@kernel.org> In-Reply-To: <20261204152836.31432-2-jszhang@kernel.org> References: <20261204152836.31432-2-jszhang@kernel.org> X-sashiko-severity: Medium Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: devicetree@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 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 commit message says two hardware settings are controlled through system-controller registers: the PHY interface mode and the… - [Low] The new binding Documentation/devicetree/bindings/net/syna,sl2610-dwmac.yaml lists… -- dt-bindings: net: Add Synaptics SL2610 DWMAC This adds a DT binding for the Synaptics SL2610 integration of DWMAC 5.20. It also adds the new compatible to the common snps,dwmac.yaml schema. The commit message says the PHY interface mode and the shared MDC/MDIO routing are controlled through system-controller registers. > diff --git a/Documentation/devicetree/bindings/net/syna,sl2610-dwmac.yaml b/Documentation/devicetree/bindings/net/syna,sl2610-dwmac.yaml > new file mode 100644 > index 0000000000000..226d07101e90b > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/syna,sl2610-dwmac.yaml > @@ -0,0 +1,122 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/syna,sl2610-dwmac.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Synaptics SL2610 DesignWare Ethernet MAC > + > +maintainers: > + - Jisheng Zhang [Severity: Low] Should this new file get a MAINTAINERS entry too? The "ARM/Synaptics SoC support" entry only has these patterns: F: arch/arm/boot/dts/synaptics/ F: arch/arm/mach-berlin/ F: arch/arm64/boot/dts/synaptics/ So the only entry that matches this binding is the generic networking pattern F: Documentation/devicetree/bindings/net/. As a result, get_maintainer.pl won't pick up the maintainer listed here. The later patch in the series, "net: stmmac: Add glue layer for Synaptics SL2610 SoC", also adds dwmac-syna.c without updating MAINTAINERS. Other dwmac glue drivers, such as spacemit, starfive and thead, list the binding and the driver in one MAINTAINERS entry. [ ... ] > + syna,syscon: > + $ref: /schemas/types.yaml#/definitions/phandle-array > + items: > + - items: > + - description: Phandle to the SL2610 system controller. > + - description: Offset of the Ethernet interface control register. > + description: > + Phandle and register offset used to configure the Ethernet PHY > + interface mode. [Severity: Medium] Does this property cover everything the syscon is used for? The commit message says: The PHY interface mode and the routing of the shared MDC/MDIO signals are controlled through system-controller registers. Only the PHY interface mode register is described here. The top-level description covers the shared MDIO topology, but it says nothing about the routing control. The glue driver added later in the series uses the offset cell to identify the MAC instance. It then writes a separate, hard-coded syscon register to set the MDIO routing: drivers/net/ethernet/stmicro/stmmac/dwmac-syna.c:syna_dwmac_init() { ... /* Interface-control offsets identify the hardware MAC, unlike aliases. */ switch (dwmac->rgmii_ctl) { case SYNA_RGMII0_CTRL: mdio_sel = 0; break; case SYNA_RGMII1_CTRL: mdio_sel = SYNA_MDIO_MASTER_SEL; break; default: return dev_err_probe(dev, -EINVAL, ...); } return regmap_update_bits(dwmac->regmap, SYNA_TW_PORT_CTRL, SYNA_MDIO_MASTER_SEL, mdio_sel); } Should the binding say that the offset also identifies the MAC instance? Should it also document the MDIO master select, which is BIT(4) of SYNA_TW_PORT_CTRL at 0xa04? The second cell has a description but no enum, so dt_binding_check accepts any offset, not just 0xa18 or 0xa3c. With a wrong offset, the MAC with the enabled mdio child fails probe with "Unknown Ethernet interface register". A MAC without the mdio child skips that check. Then syna_dwmac_set_phy_intf_sel() does a read-modify-write of CTL_PHY_INTF_SEL (GENMASK(4, 1)) at whatever offset the DT gave. Could the second cell be limited to an enum of the two valid offsets before this two-cell ABI is fixed? [ ... ] -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261204152836.31432-1-jszhang%40kernel.org