From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8ED1A606A680 for ; Sat, 5 Dec 2026 16:03:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=X75TXF7s; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=TmAB3Twd DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Transfer-Encoding:Content-Type:References:In-Reply-To:Message-ID:Date :Cc:To:From:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=mOD7rkUSs3TPEJip6mNRXYUPutXHdQ0+w5wXurLkKhk=; b=X75TXF7s1EkecJ7nWMroigkF9I YadnW66ptvXiRWE27ejrMC/to7x94QVHVwvGNSOoh4a0SLEgGG+D9w+RP4IFdm01OIN8a27+UgXzT aTFLIhb+wkYjzeJ5fLkitqL7Zeg/XQF7TcNmR7pUNeKeKLdzutAi7Gc/3zqZ6rVBKMuk85t2mKnbW GDGkBg7E+pc4ZDbp98/kGIh4Jhrvuc5imMlKN7y1QhT8MLvvCg+SAelw0jv6b4QLucD5fyp9XsxT3 dNLpTGLSigO0DJCHjvKIz9ccK+H06iPeEqXDM+RBY/dh4hkzNDYaDIYYcZnnDR02hW/MMlboMZ31V 7N8dL14g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZsEi-00000002dlH-06M3; Sat, 05 Dec 2026 16:03:44 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZsEg-00000002dl4-1UMJ for linux-arm-kernel@lists.infradead.org; Sat, 05 Dec 2026 16:03:42 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id B6F0640C01; Sat, 5 Dec 2026 16:03:41 +0000 (UTC) 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-Archived-By: MIME-Version: 1.0 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-11.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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