🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #27416

Re: [PATCH net-next v5 1/2] dt-bindings: net: Add Synaptics SL2610 DWMAC

#27416
From: netdev-bot+sashiko
Date: Sat, 05 Dec 2026 16:03
123 lines
12670 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 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 <jszhang@kernel.org>

[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
Technical Details
Message-ID: <179648662010.3146.18425277200344339589@kernel.org>
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-378039-linux-kernel-netdev=dewy.ru
References: <20261204152836.31432-2-jszhang@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-378039-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v5 1/2] dt-bindings: net: Add Synaptics SL2610 DWMAC
Date: Sat, 05 Dec 2026 16:03:40 +0000
Organization: Usenet Network
Message-ID: <179648662010.3146.18425277200344339589@kernel.org>
References: <20261204152836.31432-2-jszhang@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3063728"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:yV5cZlqNI9QsHTMKJADK4OTrNPw= sha256:l5JUoaU4LVhK9BLi8pcJfGrojjtR6F1fJRgTajZKMeg=
	sha1:OMaTNQZRj1zkV8CJr9/Ou2hAy0g= sha256:XLBqUona1vSY+olzgcGGuOC7T68J4fn3+pCpnMb4Rfc=
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 6859C117E54; Sat,  5 Dec 2026 19:04:06 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.639
X-Spam-Status: No, score=-3.639 tagged_above=-9999 required=6.31
	tests=[DKIMWL_WL_HIGH=-0.14, 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,
	URIBL_BLOCKED=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 zIMHs-rgqPoq;
	Sat,  5 Dec 2026 19:04:02 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-378039-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 3C4F6117E02; Sat,  5 Dec 2026 19:03:53 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id D557B606788; Sat,  5 Dec 2026 16:03:51 +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=1796486628;
	b=UJoehrPnzg24xZ0jjsBmE1/GlisusHcic6tMnGLxk+Wvh6tiRtst7ZKtMzywzlUGuoNI
	 oLuyboRYGzJ6hFOB0F5THmqZCvOMbifN8yzn0f3x4Nlg3hdYwX4t2XgOX0AIqJUdbL18U
	 3qYcq2ZXTTGklp391tRCvRqpBXIEM64+/+A/aA67F30wx8G+mLrQEyKVqgDZ3rDJWrSSL
	 SWsf31Uilzq5db6idSYXuf/1O4R3k2QEiTBuPpj678EbGAaV4mhA5CSmqjQX96DinHI7X
	 UKLhv4e0uQZna21jjHqrAxmfZXC4v23pxEeCyvQGZi11gneOQsFlKvlhhyx2E67qfYQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796486628;
	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=mOD7rkUSs3TPEJip6mNRXYUPutXHdQ0+w5wXurLkKhk=;
	b=KqO1SYiizKpHOw2tmSXoOps4Z6RXemaW4XmoAXRjsO5f0yBs1cs6YFg2jZW6Q3SMtISG
	 wgLxZ6fRSbNIOBoQsp1WE+oFfbfR9xmIPsMm3FyCDSzbp4RzeJcD1cw2UwJ83+cJwZgBj
	 XHpbGPV0d5KzaIEwYl32hLFWd20ayqfdL+WzV9ota5Ew2pmFiBDazdrIaaWVSTK7FRb8/
	 hesCRleGBxuQ142y8g50idpuLzxNvDvYCYYWPnxi8e9ubP9t6esr00TJNNOFQZE3yG4nm
	 iy/Pgids4tQnGViR2dbG1YEE7RBZwZUGyw0U4wDHd+qJPyVlpzOVc7tgne/jG9UkBHQ==
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=TmAB3Twd;
	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 0274B606A337;
	Sat,  5 Dec 2026 16:03:48 +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=TmAB3Twd
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=1796486622;
	b=SRP9u8g7aS+uPZyHEVbJ2UQYcH3MrrdMBlI39XP0LzdebZz/2kS4vog1y1srmZy7wr+u
	 5ch8j7ihskqISVc7rVB+u5yqr1jNGEIrfGwBoE9dG7jJ0PxiZXb4fh4W0Nvt2/8F7r0G+
	 L8+Na85jUhZSTFnWu/Q8Ex9nbfod2LwT/jyOh4o7bxb8WiCNHPotvAFUosY4OnMrR0cus
	 F+xN1SwGP/9swoKFkzMCJv8yK9cQWU6tfNA70M7eqw8PS8fnMnib/PCWNcMIkbgy44BNN
	 +WKGDMRaeDZNKLhCS79hBFFxBIifXZCHMWv5tcNGsm8E/B2wxpT7bZf8LSeNzJvYDgw==
X-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==
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=TmAB3Twd;
	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 F0DBA606A31F;
	Sat,  5 Dec 2026 16:03:41 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F9E21F0092B;
	Sat,  5 Dec 2026 16:03:40 +0000 (UTC)
X-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==
X-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
X-In-Reply-To: <20261204152836.31432-2-jszhang@kernel.org>
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