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=1796335277; b=XRZhlnqpyYu7TM7j7Zo+G2kKzktAn/Sp3iRnsLMCOSYd36W1RKOKw6Hh+eE8gIVuOUWN R9lXm83VK8AAM95kw3iw8mvsrVhGkLBmtHwdy35HJMzMo6VRBcxKVyJw+KTK3uRXZkW8j hYBWtn1CjqHFwFzlHOFWBad4JE9Gtkloz0UintgNXiXeqhbqbBcHIykC4uHdIvXsqO9cP L5Xs4rzpvR/dhlL1vr8tuPvHVwlw1mc+RSNv5V0+BlxHi2W0b7uefa5Q4UNi7BT+KKHYW rdYZhYAjp+Yq0ozYK12e1t2CMYxVK8t/hkYyWPN+yrBaL6UDcX4eycWzaFgqtrnW/VA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796335277; 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=B7n5NYWmeOB44NpiROO0YT6LubEvB22ES4mFcT8PQos=; b=AmCkjllGVF8wWrEYz6IGL2mwX+PolLGcsNgLb4+2AACCF9ZJx1SMF8y1mFnQnWUjN9ZK OiwE6vem8Gd4QWrRWbArrH62Nn/jwqk2Oz99xoxd81BO6Dng9uIHxEZQddPjxred892ue zHtZZqL3he2UmCQ4aQXDY/wXFzfcf5ENeDeNZK2Qm64un4koT3PFRVyuuye1PQYjB15cw 1obrkweKq8YtX4XD5yh9AF3uIFv4YLADPXDo3/NgouFkdmbT3Dp+VQN4SDsSI+keJYT03 XafclrEkvhQMpgwMKQ6KRyv3ah23/kKHZO7ZyGAqpVszHDOQ9aDMrPdaqsa00o/b3IA== 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=Ia1sdzVH; 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 99FD4606A681; Thu, 3 Dec 2026 22:01:17 +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=Ia1sdzVH Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B3131F00931; Thu, 3 Dec 2026 22:01:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796335277; bh=B7n5NYWmeOB44NpiROO0YT6LubEvB22ES4mFcT8PQos=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=Ia1sdzVH6TGaHps0Ksc5g4kgHfDPMxtW6kfVKQE0XRA+H5ALHi4yVZ0sIKyruNT9X JD+/PVqJVN7SRHtirW+lWRFl7UX0RVg4M2evxSigkyZpVVfMTuvuKTpYFGxXOOoMhV XJekZXDioHrbyzkLa37P6HVJRySLkbQsSEm9WqN48yLKD296fz2v0cxvK04XBGU9zW bMKv6PEik7rsrfdZkp5iguWZR7St+j+bVKsvL81sarweBpijc54iiAZuUFI/J6yEL+ 1q+gQazF9tLvJaGcyDe9pSzXW/yPfmzGYJiJCd3dLxEd6vQgb3R/p5lzxyPbn2UZV1 0MBWUoHGL/DTw== Subject: Re: [PATCH net-next v2 2/3] dt-bindings: net: Add Siflower SF19A2890 GMAC From: netdev-bot+sashiko@kernel.org To: joseph@telaak.dev Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, richardcochran@gmail.com, alexandre.torgue@foss.st.com, joabreu@synopsys.com, maxime.chevallier@bootlin.com, mcoquelin.stm32@gmail.com, gch981213@gmail.com, linux@armlinux.org.uk, linux-mips@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Date: Thu, 03 Dec 2026 22:01:15 +0000 Message-ID: <179633527571.3146.14559066829679788140@kernel.org> In-Reply-To: <20261201-sf19a2890-gmac-v2-2-8d2c513db496@telaak.dev> References: <20261201-sf19a2890-gmac-v2-2-8d2c513db496@telaak.dev> X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: netdev@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 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 rgmii-delay calibration cell can only be given if a mac- address nvmem cell comes first. - [Low] The reason given for banning rx-internal-delay-ps covers only the TX line. - [Low] The concern says no SF19A2890 glue driver exists, so nodes would bind to dwmac-generic through the "snps,dwmac" fallback, and that… -- dt-bindings: net: Add Siflower SF19A2890 GMAC This adds a binding for the DesignWare GMAC 3.73a in the Siflower SF19A2890. The binding has a second reg region for the interface configuration block, a fourth clock (byp_ref), and an rgmii-delay nvmem cell that holds the factory delay calibration. It rejects rx-internal-delay-ps and tx-internal-delay-ps, and it also adds the compatible to snps,dwmac.yaml and adds a MAINTAINERS entry. > diff --git a/Documentation/devicetree/bindings/net/siflower,sf19a2890-gmac.yaml b/Documentation/devicetree/bindings/net/siflower,sf19a2890-gmac.yaml > new file mode 100644 > index 0000000000000..f42276c25d2c2 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/siflower,sf19a2890-gmac.yaml > @@ -0,0 +1,119 @@ [ ... ] > +properties: > + compatible: > + items: > + - const: siflower,sf19a2890-gmac > + - const: snps,dwmac [Severity: Low] With only this patch applied, nothing in the tree matches siflower,sf19a2890-gmac. A node would bind to dwmac-generic through the snps,dwmac fallback, so nothing would use the second reg region, byp_ref or the rgmii-delay cell. The new MAINTAINERS entry also lists only the binding file. The next patch in the series, "net: stmmac: Add Siflower SF19A2890 glue", seems to cover both points. It adds dwmac-sf19a2890.c, which maps reg[1], enables byp_ref, reads rgmii-delay and programs PHY_INTF_SEL. It also adds the driver file to the MAINTAINERS entry. The snps,dwmac fallback needs to stay. devm_stmmac_probe_config_dt() only sets the GMAC core type and pmt when the node matches snps,dwmac or one of the versioned 3.x compatibles: drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:devm_stmmac_probe_config_dt() { ... if (of_device_is_compatible(np, "st,spear600-gmac") || of_device_is_compatible(np, "snps,dwmac-3.50a") || of_device_is_compatible(np, "snps,dwmac-3.70a") || of_device_is_compatible(np, "snps,dwmac-3.72a") || of_device_is_compatible(np, "snps,dwmac")) { ... plat->core_type = DWMAC_CORE_GMAC; plat->pmt = true; } ... } Two smaller points are left. The fallback does not record the 3.73a IP version. Also, if the glue is built as a module and dwmac-generic is built in, could dwmac-generic bind to this node first? Other glue bindings with a fallback that dwmac-generic matches behave the same way. [ ... ] > + nvmem-cells: > + minItems: 1 > + maxItems: 2 > + > + nvmem-cell-names: > + minItems: 1 > + items: > + - const: mac-address > + - const: rgmii-delay [Severity: Low] Because the order is fixed, can rgmii-delay ever be given without a mac-address cell in front of it? A node with only this would fail validation: nvmem-cell-names = "rgmii-delay"; The companion change "dt-bindings: net: ethernet-controller: Allow a device-specific nvmem cell" also fixes item 0 to mac-address: Documentation/devicetree/bindings/net/ethernet-controller.yaml: nvmem-cell-names: minItems: 1 items: - const: mac-address - description: Named by the device's own binding A board might get its MAC address another way, such as a mac-address or local-mac-address property set by the bootloader, or a random MAC. That board would have no way to describe its factory delay calibration. Per this binding, the MAC then adds no delays, and in the glue driver it keeps whatever the bootloader programmed. The driver looks the cell up by name with devm_nvmem_cell_get(dev, "rgmii-delay"), so the order only matters to the schema. Could the schema allow rgmii-delay on its own? > + description: > + rgmii-delay is the factory calibration of the RGMII clock delay > + lines, four ASCII hexadecimal digits giving the TX setting and then > + the RX setting, in the lines' own steps. > + > + # The delay of the TX delay line at its lowest setting is not known, so > + # the delays cannot be given in picoseconds. > + rx-internal-delay-ps: false > + tx-internal-delay-ps: false [Severity: Low] The comment here and the commit message both give a reason that applies only to the TX line: The delay of the TX line at its lowest setting is not known, so rx-internal-delay-ps and tx-internal-delay-ps are not accepted: a value in picoseconds could not be honored. Why is rx-internal-delay-ps rejected as well? If the RX line's offset or step size is also unknown, could the comment and the commit message say so? ethernet-controller.yaml describes these properties as the standard way to fine-tune MAC delays. Reviewers will probably ask why they can't be used here instead of a vendor ASCII-hex nvmem format, so the reason for RX matters too. -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261201-sf19a2890-gmac-v2-0-8d2c513db496%40telaak.dev