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=1796194845; b=licLL/QU14XbGPQFaUZM6iDzfzVKiHFA21cwOzJm4g0o5dNdwQc3FUMb3dNd8dwsox01 ZOKfHm7glTHwrUB5PcQPVfPQpOmhwPg1Vv03LobBfkdOHiv2yu96ty9lYJ0qlRlD2P6/Z TeUUY3P4yRPOrSG6ySz/Q/j0gRZ1kQ3kF3WUgT7jLvy7iAxfJkrmkPgTSPATGmZIXkoeo BK8WMgAKhusLV9VfInWsgrBvX9FLHrvUk8l4s+yYVp8ZTmpMjy9/9Kf6wK3rrXW/50f5k 2ZktkikEOug6jaTftPMMiZbNdmnDVAr4R+UzoUeUBBnKq2B5vrFfRM2XYCMSczSqzjw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796194845; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=CP7Ym5jeOw0feGW/v3Zi1fvrlmPJNgp2tip/vn0gEEk=; b=y1STbwV7SoLHSvZo7bwyV4yoqQSeVxApH+mxAyzMT80nz/hupqJyFrsSygwdqWhVTdet 4f7lox7jLjPJce/ED7gcwSgDk0uabjH//E28pcU1xVWAZ/tdmQs/xReCGQUwobHCocoTX S3ICaBF4FD07cm0OeXYYCrpRk3hEE5Br6JHvv5YMbfv+frjB2Syk+uWKD0GGOCac+5b9q th8PCGm2qPsE1d9XgJZYmoUAMapCcOp0PKWUD/onKUdiU0qIGGDZ5uR4Nr8W6uSA19zCo eZ/mrqWDDKqfJqh8+fkGm46c+pruN7m4KNj71RHbrlzcF5cD5V28TACoLgLmkxxZPBw== 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=e4+UEY+i; 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 F025C606A31A for ; Wed, 2 Dec 2026 07:00:44 +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=e4+UEY+i Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D6DA1F00923; Wed, 2 Dec 2026 07:00:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796194844; bh=CP7Ym5jeOw0feGW/v3Zi1fvrlmPJNgp2tip/vn0gEEk=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=e4+UEY+iXG+fsMGzMYQFDDj/YtglwK++1BrKQz01tCcPpr9Y1Oj8SIuI3wVO7oJZO HUQ0WvVHG8RKJgcTcXyE3z78as7g4Niocz/MZguw8f9WNTvomI6lzULatp6sI1F6/e Y2Ef6ZS0tJiwuYdhqP+mBgHEuVrzMPpMkWYyhZ1RgB8YuOpbpSPi/BC5d3SN1KTf8I fNUqkXFsJGyhYF1rXTEsi5HJ0CLaPzf3/NQW9JTnoat5Bcpkn6YgLsWpncfCzz0Xdr urwsZAXC+vf13WthFEgeDWRm2/IRlvC2kZ8UK2E+3WZSo5gW0EEhy51Ix4j5EuhFKg EVTuG6G/kysvw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net-next v2 1/3] dt-bindings: net: ethernet-controller: Allow a device-specific nvmem cell Reply-To: sashiko-reviews@lists.linux.dev To: "Joseph Telaak" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261201-sf19a2890-gmac-v2-1-8d2c513db496@telaak.dev> References: <20261201-sf19a2890-gmac-v2-0-8d2c513db496@telaak.dev> <20261201-sf19a2890-gmac-v2-1-8d2c513db496@telaak.dev> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 07:00:43 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Medium] dt-bindings: net: positional nvmem-cell-names forces mac-address first - [Low] dt-bindings: net: nvmem-cells enumerates entries in free-form description -- commit f11b8b4f92dfebe292cc8f64c3cad8dd865e4cab Author: Joseph Telaak dt-bindings: net: ethernet-controller: Allow a device-specific nvmem cell This commit extends nvmem-cells and nvmem-cell-names in ethernet-controller.yaml to allow a second, device-specific nvmem cell after mac-address. > diff --git a/Documentation/devicetree/bindings/net/ethernet-controller.ya= ml b/Documentation/devicetree/bindings/net/ethernet-controller.yaml > index 30b2a335116e9..da27ff8012eba 100644 > --- a/Documentation/devicetree/bindings/net/ethernet-controller.yaml > +++ b/Documentation/devicetree/bindings/net/ethernet-controller.yaml > @@ -22,12 +22,17 @@ properties: > Specifies maximum speed in Mbit/s supported by the device. > =20 > nvmem-cells: > - maxItems: 1 > + minItems: 1 > + maxItems: 2 > description: > - Reference to an nvmem node for the MAC address > + Reference to an nvmem node for the MAC address, then optionally to= a > + cell that the device's own binding describes [Severity: Low] For a fixed two-entry nvmem-cells property corresponding to the nvmem-cell-names items list below, DT binding conventions prefer an items list carrying a per-entry description rather than maxItems with a free-form description that enumerates the entries and restates their optionality. > nvmem-cell-names: > - const: mac-address > + minItems: 1 > + items: > + - const: mac-address > + - description: Named by the device's own binding [Severity: Medium] Does defining nvmem-cell-names as a positional items tuple require index 0 to always be mac-address while leaving index 1 unconstrained across every binding that inherits ethernet-controller.yaml? Because items validates by array index, any Ethernet controller node that specifies only a device-specific nvmem cell (such as factory RGMII delay calibration in an SoC .dtsi where the MAC address does not come from nvmem) will fail dtbs_check unless mac-address is also provided first. At the same time, bindings that inherit nvmem-cell-names from ethernet-controller.yaml without overriding it now permit a second nvmem cell with any arbitrary name. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201-sf19a2890-= gmac-v2-0-8d2c513db496@telaak.dev?part=3D1