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=1796356015; b=s2A/sLhsIrHNMVvYscdkrTdZzxU94SgCjP/l/MvEdyw2syMIr0sxF1uvyCWYJqjuknyL llnq07A7Xc7gJEl3tV4o0wXtdKY9yu77bLXZR2rwlJJzkv4+rvC2QCM0gldsPkRxurp/K ha3NkI32ok4Gbu2sjnoWvxT15pqDdaYbVjT/zmlxWeqMf5VlJT3cGnK0W+YvRDqKuFq/2 i9QMgcD+kM8URiEoIsWS8Sz2v1fc38mpLkyIZ6//OPgq2RpvguRp0T4qaohbwroaCriAK o9mYJmjY1PyyLl0MrTs8SBpyRBBafsP8Y3BJMgMMeDetxXS4C/XNUG/Yt5usZP0JkzA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796356015; 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=sVgOLF5Z1x4zeH1cRDfpZVm/mLMT5QhDeD38YKGLq7Y=; b=5rNwrKiSKcXTy5WcXwAqv3jazKUUkuuKccru1XMD/IOF2yL6fg24G4brZuhNtgDNUhhz rCxDNwxR/caZUv26NjmFOSndb9u7teH6wkzrh4lJC9sMdKtcMWJ87yeav81c4/vUq0yt8 96ZiTcX0z4cm68auKOVYeKlQP3w/l6DSo2wuQRztr65m5xbJAOiENC2YyjiF/xiBD7LQ1 0x3EFP+6EfJ5MoMAIQLkPqSGwk/+MSqvUkG6+pvh4nf9e+cH0rnIn3xJtkYqnBeXrXoAo VkOtxcMFKwx+AU8KxDE8Jm8x3YTgOSFCRDZLd2+3Aa3IInzXI3igO+icnNaXG+m4GzQ== 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=fQfihxA1; 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 00FA3606A330; Fri, 4 Dec 2026 03:46:55 +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=fQfihxA1 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF5E11F00936; Fri, 4 Dec 2026 03:46:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796356014; bh=sVgOLF5Z1x4zeH1cRDfpZVm/mLMT5QhDeD38YKGLq7Y=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=fQfihxA1G+t6eXrTaHW6G0t7iL9o4N/MajM95vUIMWkC4TgMaJqTQPB8DpOQbCo1A RRokdrB+PSSTAQ9OxPZz+yZGP65AI9ezU8SM5v5IK3KcDbVdJAjbwf4DCWkljq57hI Xx17r7RmFBnc1JuRJihNsrFpkiY4WadMi5glXeqh0XpTQYOG2gtxwQn1X4NoiXaNPe THOWe7jbMr3fMfj8mQI6RoEdi3BJPtDEfnKnmE+r1AdgvXICymWM5RxEaQw+0GAFav tB66QyAyy672K6emvRH7/cXPZx2jFoOsTZ8UWTbwWeDYvPMgvBOGQJ0s3MaO+2VcIG KWFYIF03zlTAQ== Subject: Re: [PATCH net-next V29 1/3] dt-bindings: net: Document Motorcomm YT8824 PHY package From: netdev-bot+sashiko@kernel.org To: kyle.switch@motor-comm.com Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, Frank.Sae@motor-comm.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ming.xu@motor-comm.com, xiaolin.xu@motor-comm.com, jianmin.wang@motor-comm.com Date: Fri, 04 Dec 2026 03:46:53 +0000 Message-ID: <179635601335.3146.13283218503536356094@kernel.org> In-Reply-To: <20261201094405.3036391-1-kyle.switch@motor-comm.com> References: <20261201094405.3036391-1-kyle.switch@motor-comm.com> X-sashiko-severity: Medium Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: devicetree@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 1 potential issue(s) to consider. Critical: 0 · High: 0 · Medium: 1 · Low: 0 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] In motorcomm,yt8824.yaml, the description of the external (10g-qxgmii) mode says the address can vary, but the schema fixes it. -- dt-bindings: net: Document Motorcomm YT8824 PHY package This patch adds a binding for the Motorcomm YT8824 quad PHY package. It builds on ethernet-phy-package.yaml and adds a new motorcomm,package-mode property to choose internal or 10g-qxgmii mode. It also adds a maintainer and an F: entry to the MOTORCOMM PHY DRIVER section in MAINTAINERS. > diff --git a/Documentation/devicetree/bindings/net/motorcomm,yt8824.yaml b/Documentation/devicetree/bindings/net/motorcomm,yt8824.yaml > new file mode 100644 > index 0000000000000..1065e5382670f > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/motorcomm,yt8824.yaml [ ... ] > + motorcomm,package-mode: > + description: | > + PHY package can be configured in 2 modes: > + - internal: YT8824 is embedded in the switch, using > + an internal interface to the MAC. The member PHYs are > + fixed at MDIO addresses 4..7 and the shared top > + extended register block is at address 9. > + - 10g-qxgmii: YT8824 is a standalone external PHY, > + connected via 10G QXGMII. The member PHYs start at > + the base MDIO address and the shared top extended > + register block is at base + 4. > + $ref: /schemas/types.yaml#/definitions/string > + enum: [ internal, 10g-qxgmii ] > + > + reg: > + description: > + The absolute MDIO address of the YT8824 shared top extended > + register block. > + For internal mode, this is fixed at 9; > + For external mode, it is the base MDIO address of the four > + member PHYs plus 4, where base is typically 0x0. > + Note that this is NOT the reg of the first member PHY. [ ... ] > + - if: > + properties: > + motorcomm,package-mode: > + const: 10g-qxgmii > + then: > + properties: > + reg: > + const: 4 [Severity: Medium] Do the text and the schema agree for the 10g-qxgmii case? The motorcomm,package-mode description says the member PHYs "start at the base MDIO address" and the top block is "at base + 4". The reg description says base is "typically 0x0". Both suggest the base can be something other than 0. This branch sets reg to const 4, so 0 is the only base that passes the schema. The parent ethernet-phy-package.yaml allows any reg from 0 to 31: reg: minimum: 0 maximum: 31 So the limit to 4 comes only from this binding. Suppose an external YT8824 is strapped to a non-zero base, for example PHYs at 8..11 with the top block at 12. Would its DT fail dt_binding_check? It also seems that two external YT8824 packages could never share one MDIO bus in a schema-valid DT. The driver patch later in this series ("net: phy: Add driver for Motorcomm Quad 2.5GbE phy") makes the same assumption. yt8824_utp_shared_group() in drivers/net/phy/motorcomm.c hard-codes a base of 0 for non-internal mode: if (priv->package_mode == PHY_INTERFACE_MODE_INTERNAL) base = 4; else base = 0; if (addr < base || addr >= base + YT8824_UTP_SHARED_GROUPS * 2) return -EINVAL; The schema and the driver match each other, but neither matches the binding text. The binding is unchanged at the end of the series. This is new DT ABI, so which one is intended? If the hardware supports a variable base, could reg be a range, with driver support for that base? If the external base is hard-wired to 0, could the text say so and drop the "base" and "typically 0x0" wording? -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261201094405.3036391-1-kyle.switch%40motor-comm.com