Article View: linux.kernel.netdev
Article #4499Re: [PATCH net-next v12 4/6] dt-bindings: net: rockchip-dwmac: document pcs-handle
From: netdev-bot+sashiko
Date: Sun, 18 Oct 2026 06:45
Date: Sun, 18 Oct 2026 06:45
86 lines
8646 bytes
8646 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 rule that makes pcs-handle required is true even when phy- mode is absent, and the patch adds a redundant rule that the commit… -- dt-bindings: net: rockchip-dwmac: document pcs-handle This adds a pcs-handle property to the Rockchip GMAC binding for the SGMII support added later in the series. It also adds two allOf rules for rockchip,rk3568-gmac. The first requires phy-mode. The second requires pcs-handle when phy-mode is "sgmii". > 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 > + > + - if: > + properties: > + compatible: > + contains: > + const: rockchip,rk3568-gmac > + phy-mode: > + contains: > + const: sgmii > + then: > + required: > + - pcs-handle [Severity: Low] Is the sgmii if above true when phy-mode is missing? In JSON Schema, a properties subschema passes when the property is not there. That means a rockchip,rk3568-gmac node without phy-mode matches this if. It then gets a "pcs-handle is a required property" error, even though nothing says the link is SGMII. The standalone phy-mode block before it does not make this if false. Each allOf entry is checked on its own, so that block only adds its own error. Is the standalone phy-mode block needed at all? rockchip-dwmac.yaml already pulls in snps,dwmac.yaml with "- $ref: snps,dwmac.yaml#" under allOf. That schema already requires phy-mode at the top level: Documentation/devicetree/bindings/net/snps,dwmac.yaml: required: - compatible - reg - interrupts - interrupt-names - phy-mode So an rk3568-gmac node with no phy-mode would get two "phy-mode is a required property" errors and a misleading pcs-handle error. The commit message also does not say that phy-mode becomes mandatory for rk3568. It only says pcs-handle is required when phy-mode is "sgmii". Could required: [phy-mode] go inside the sgmii if instead, which is the usual idiom? The standalone phy-mode block could then be dropped. -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261017054406.1828061-1-coiaprant%40gmail.com
Technical Details
Message-ID:
<179230593214.3135.8437298852154217978@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-347966-linux-kernel-netdev=dewy.ruReferences:
<20261017054406.1828061-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-347966-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v12 4/6] dt-bindings: net: rockchip-dwmac: document pcs-handle Date: Sun, 18 Oct 2026 06:45:32 +0000 Organization: Usenet Network Message-ID: <179230593214.3135.8437298852154217978@kernel.org> References: <20261017054406.1828061-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="3250764"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:nVxnChrRxQYnQwmvZaWcnZ8N0pg= sha256:xjR7B/K4E8hEgtGKVGHh8eSqNW7kGSgV7q0lwzwJa4o= sha1:yzfXzcnF1iRx/GMwPFQNVNB2i1E= sha256:/yKDk0g+N00RYKIDru7rPOqQuKbxHG3Ap3yO++DZ2ZE= 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 D1DB611202A; Sun, 18 Oct 2026 09:47:29 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.64 X-Spam-Status: No, score=-3.64 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.24, 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 EPzgimetJmvq; Sun, 18 Oct 2026 09:47:26 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-347966-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 873D4DF0B6; Sun, 18 Oct 2026 09:47:14 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id C7DEA3D07C; Sun, 18 Oct 2026 06:45:37 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D1EB440642; Sun, 18 Oct 2026 06:45:35 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IDTtpgBK" 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 D2D2C42882B; Sun, 18 Oct 2026 06:45:33 +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=1792305934; cv=none; b=gDd5ZneO2NR2LQa/meD3GO5rl8L5IoZFlCynZpNgPrghvifE0uFPohV9xybDkDHenkKUJ61uLs1NKGRruD2OctIKtNp9l2Bpdx+90n+CcwZKDJFmv3EOOhS0381QDVw49OYamvMw2P1zJ0iDr835MoVNe80gEtn3htwSCp6Igcs= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792305934; c=relaxed/simple; bh=kGVfoNZHNRN1OQPN2rIAUMB8E7o995LRGVgxQiiOYco=; h=Subject:From:To:Cc:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=C3vF8n4A6CIXzGBsCw0eD69CXPV2VNiW2jWcimErcPCj8fEF7MBr4xmUfRRplmn2YiBlsGfFqZwO7qJCzq3ptxlNkm4UoVA5icqiFwVfyxQiciiAyVs5eS0++AVrNHPzLlkeaFDRWBfhu1Y89WxPuHARc3rB7rCw2bWjbfgQidk= 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=IDTtpgBK; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88DAC1F000C5; Sun, 18 Oct 2026 06:45:32 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792305933; bh=Aw3jt4zHNgm4deRIvVS+AZXuU23cUxhaCwFbDt3G//8=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=IDTtpgBKYaBm2zaIDQhOZ2PSPkv++aTyX8wVxTj2Q0K4oYfe2P93j8UmQzy8lF96z DUbtyoT9e6jjvvowflopO2xrDud7A/6k90+MWxFWOqOPUVGdheUC5VbHjxVDQb45jP QaUwTFsOn8GIQ0mzFKM0tjGXBHU4ItG8DV4W6eyd/LQWwQLPABkuzuDGL+QJwJY1ex KtxIHmkUVQ0ShJsuOFgWVp63M5Lh811FxiJz14zK5bn7wk+HGEST9FP71tDuGB+k8T K1FdW67lK9RxBnPG4N5JDaWxFeQenCyXH7NsUoxkwKtrc9Q520suhkHwmvhuF191kk Wob3D59UMvzxQ== 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: <20261017054406.1828061-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>