Article View: linux.kernel.netdev
Article #2493Re: [PATCH net-next v11 4/6] dt-bindings: net: rockchip-dwmac: document pcs-handle
From: netdev-bot+sashiko
Date: Mon, 12 Oct 2026 19:01
Date: Mon, 12 Oct 2026 19:01
111 lines
9309 bytes
9309 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] The patch adds an allOf entry to
Documentation/devicetree/bindings/net/rockchip-dwmac.yaml (lines…
- [Low] At this commit, rockchip-dwmac.yaml documents `pcs-handle` and
requires it for rk3568 when phy-mode is "sgmii", but nothing in dwmac-…
--
dt-bindings: net: rockchip-dwmac: document pcs-handle
This patch documents a pcs-handle property in the Rockchip GMAC binding.
It makes the property required for rockchip,rk3568-gmac when phy-mode is
"sgmii". The SGMII driver support that uses the property arrives later in
the series.
> diff --git a/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml b/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml
> index 80c252845349c..c434450fd07ff 100644
> --- a/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml
> +++ b/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml
[ ... ]
> @@ -159,6 +165,27 @@ allOf:
> clocks:
> minItems: 5
>
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: rockchip,rk3568-gmac
> + then:
> + required:
> + - phy-mode
> +
[Severity: Low]
Is this block needed? The commit message doesn't mention it.
rockchip-dwmac.yaml already includes snps,dwmac.yaml through its allOf:
- $ref: snps,dwmac.yaml#
That schema already requires phy-mode for every node, with no condition:
Documentation/devicetree/bindings/net/snps,dwmac.yaml:
required:
- compatible
- reg
- interrupts
- interrupt-names
- phy-mode
So phy-mode is already required for all Rockchip GMAC compatibles,
including rk3568, and dt_binding_check / dtbs_check give the same results
with or without this block.
Repeating the requirement for rk3568 only could also suggest that phy-mode
is optional on the other Rockchip SoCs.
If the goal is to keep the sgmii if clause below from matching when
phy-mode is absent, the inherited requirement already does that. Could
this block be dropped? Alternatively, a local required: [phy-mode] could
go inside the sgmii if clause.
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: rockchip,rk3568-gmac
> + phy-mode:
> + contains:
> + const: sgmii
> + then:
> + required:
> + - pcs-handle
> +
[Severity: Low]
At this commit, nothing in dwmac-rk.c reads pcs-handle yet, and the driver
doesn't accept SGMII. Doesn't that leave the binding and the driver out of
sync if someone bisects to this commit or applies only part of the series?
The consumer arrives in the next patch, "net: stmmac: dwmac-rk: add SGMII
support for RK3568". That patch adds rk_pcs_init():
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c:rk_pcs_init() {
...
pcs_node = of_parse_phandle(node, "pcs-handle", 0);
if (!pcs_node)
return -ENODEV;
...
}
It also adds the SGMII pcs_init/pcs_exit/select_pcs handling to
rk_gmac_probe(). By the end of the series the binding and driver match,
and putting the binding before its user is the usual DT submission order.
I'm only noting it here for completeness.
> unevaluatedProperties: false
>
> examples:
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261008175225.3375274-1-coiaprant%40gmail.com
Technical Details
Message-ID:
<179183169035.434549.10534973207994828766@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-345194-linux-kernel-netdev=dewy.ruReferences:
<20261008175225.3375274-5-coiaprant@gmail.com>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-345194-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v11 4/6] dt-bindings: net: rockchip-dwmac: document pcs-handle Date: Mon, 12 Oct 2026 19:01:30 +0000 Organization: Usenet Network Message-ID: <179183169035.434549.10534973207994828766@kernel.org> References: <20261008175225.3375274-5-coiaprant@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1860381"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:B6Ucw0KNoNldyygmRe2S2aNgnFQ= sha256:scZvzU4Rq0BR2pYlExYau3TE1y4saWWYvEHgdYWD3Vw= sha1:YXns6cflQOBGNJiEsvmhjwfD1LU= sha256:Z1ept7np9loEwIuoLcTjUZci9yEFirE8AVST5Sw2i8w= 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 6212810FCBC; Mon, 12 Oct 2026 22:05:44 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -1.34 X-Spam-Status: No, score=-1.34 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.241, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, 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 aitwfM8AYRMf; Mon, 12 Oct 2026 22:05:40 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-345194-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 6DB6110FC97; Mon, 12 Oct 2026 22:05:32 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id 15B12364BE; Mon, 12 Oct 2026 19:01:51 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E0347421A17; Mon, 12 Oct 2026 19:01:33 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="m1212i0H" X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5038F427FB7; Mon, 12 Oct 2026 19:01:32 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791831693; cv=none; b=Lz9vTSYAQF2I51AKieZKmzRaUVcNWCqkUMIqpjQpTJy11O0Ru8oTI7Sr/uivq5kxR+HqNj66bbX3Dt8cn2jYbJOei9ZjSfveEtp6nuofwp95yvwfxM7IkKyfiK5S84lngVdraBma4yPRxhBR/LI8XVu0UvDg3y05xkXxtAHbjsg= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791831693; c=relaxed/simple; bh=hx93oBV5ay7h1WKyBPg33bFUUDHTPHEjKcm5CfVX5+Q=; h=Subject:From:To:Cc:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=SWz044RZSpvHr+oDfQTk/66QPW+/H+Mvw8hg/mXba59p2RwDX2Tgn6t4Yn2zs1nWrbTCGHdDuV/WVD7vNfxVbEt8cHzHud7jygQ1P5zufYfghyUA2AeqP5ApoiqDAMNMg6XWbmNjKFhmLO8xCEWcBGfhDP7CkPxuGPGQr9Fj77g= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=m1212i0H; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id C54601F008A1; Mon, 12 Oct 2026 19:01:30 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1791831691; bh=zHYdiOvoPMM4fKDDQu6aYgmkSz9zei65hX1+eT9iVnE=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=m1212i0Heg3Ok5j7k4aYr3MYBbpWrUTI4j8sr2lTfEPh0NHtvXqOHwh0+pWFtYUei 12qErMtNs/m6V8MW0VeNkZY33fSio1nn9NBV3a5+7vEPu4Zjd6E7V9oipyQa6jW54h tN5OEcD6VNzQlPU1lB8HBQYE8kJc7A8YI/IV6xrIRlWwDBMo1gdUwkbCKoJQ9+4gpZ HWGMyxyBd0Zv9Mmt2X7CxOlDaTzkRX1/CkB0D4XXkeoIdjY58i7pAcpkffqDNjyaDr I/luYbsjrC4H62aZ3uVYMRrJkDEteNAaaP6i1LEhdtXwrYe/ZbHxjoyeTOYVlQCrcY gjHIvejXagSNw== X-Cc: kuba@kernel.org, netdev@vger.kernel.org, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de, maxime.chevallier@bootlin.com, mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com, hkallweit1@gmail.com, linux@armlinux.org.uk, david.wu@rock-chips.com, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-In-Reply-To: <20261008175225.3375274-5-coiaprant@gmail.com> X-sashiko-severity: Low X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>