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=1796211955; b=TRPBjXEqTqvoYRVZ+3DvOlmiEQZMBWLtZYfZo9xX1ycZ66lkeQEpaT7rZVNRi2WBhdrC VBPFd8eINb1BJwy/WfesvXE1J7yLETfH/6YlE05CDadCP9UAy029RkmVcCL6/xZ31aNuF ugMk3jZ4MU6NfNcmSTtySQUpjsUv7zfpnrOhJKoXwuBH233ZlCzEDptUCQQC6CYTErDGm Sl6yhABqHYXLw8ZOV+OQK4AL+kvLMB4IaCdHukVXk/N/eXUOfJs9kr/j1exnEr8shajLR BNaVXECwwXbKbBRWQTTnHh8T8tpRiaIplsQIye5Wu/uzltgX+DqyRfnUhMRre8wH5xQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796211955; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=12PLEVPAlQ7TuUKsL1RA/9hehB3yey2VZAIfodZlc1I=; b=PhqiQDkabnjJPeOyh6nXk6STguchpLW9xZ6uWd728hQspTH4U4KON7OBaNYxdiRglyyB pw+gob8QZARsPdK4azlnuHzJeLH+ERsD11NOB0sx72UdjwE5MgpSxIhwPuGMurP7E5C/K ba3Fe5In2t6TswgUlzkw/rvmMIHYmZdw77pSYZItsWLM/wjj71R6MAoSS5ad7wg3A+T9t JJowDXG8PFCmk+L6UZqfEiGmg0Oi0K55sfEZWYT2dfZzjd9hjL12H+zeukWrThQ6vLsvB tIPOtJB5IBt9rr14eJ8pnTuLfYXcorQion87Nvl44BIRyww4aSkp6PAfXi72xzbkZbA== 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=Hw4HWdQW; 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 662A7606A31A for ; Wed, 2 Dec 2026 11:45: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=Hw4HWdQW Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6A8C1F0089C; Wed, 2 Dec 2026 11:45:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796211955; bh=12PLEVPAlQ7TuUKsL1RA/9hehB3yey2VZAIfodZlc1I=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=Hw4HWdQWNL5EcSQFOAHRa+FxVaDvdXOoynymWNX6fwo3sUmd6fve4LHbUTDrHjjTy IsAZ9c/vkOY/pgMa8Oa84lerGP4LbCPuL/nnR71RNSlA9Q8XX2XPuTZv2FNLWWY2zp fXTyfj0/NAtsPSI9weZbXA6i4spieEDzeaxVpVV6o/VUXjfcJT+HoMxyuZUsrJPK5N LzZK+abN8ST5P8aMnvxmsPk2hsWGAMJ4TxKVDk4IzCv0rNh0sPxGpkJxI89X1RHH+8 keVcPs502h3aqlmG4BupWnA7zXCnwPeHgTrI8h3mWGbDuTRmpvZWXBsS1A3AdJcl86 /BajG61S7SGlQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v4 1/3] dt-bindings: nvmem: add byte-mask property for non-contiguous byte selection Reply-To: sashiko-reviews@lists.linux.dev To: "Hongmei Xu" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261202-nvmem-byte-mask-for-split-macaddr-v4-1-039f1b0afeca@oss.qualcomm.com> References: <20261202-nvmem-byte-mask-for-split-macaddr-v4-0-039f1b0afeca@oss.qualcomm.com> <20261202-nvmem-byte-mask-for-split-macaddr-v4-1-039f1b0afeca@oss.qualcomm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 11:45:54 +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 3 potential issues to consider: - [Medium] dt-bindings: nvmem: byte-mask redefines reg size and reads beyond reg - [Medium] dt-bindings: nvmem: byte-mask added to fixed-cell against maintainer direction - [Low] dt-bindings: nvmem: unrelated qcom,nord-qfprom addition in qcom,qfprom.yaml -- commit 4a212237811eb974de49d8b89d27971b7e08603b Author: Hongmei Xu dt-bindings: nvmem: add byte-mask property for non-contiguous byte selection This commit adds the byte-mask property to the fixed-cell NVMEM layout binding to support selecting non-contiguous physical bytes for a cell, and adds the qcom,nord-qfprom compatible string to qcom,qfprom.yaml. > diff --git a/Documentation/devicetree/bindings/nvmem/layouts/fixed-cell.y= aml b/Documentation/devicetree/bindings/nvmem/layouts/fixed-cell.yaml > index 38e3ad50ff4fb..46e1101ee98ae 100644 > --- a/Documentation/devicetree/bindings/nvmem/layouts/fixed-cell.yaml > +++ b/Documentation/devicetree/bindings/nvmem/layouts/fixed-cell.yaml > @@ -34,6 +34,20 @@ properties: > description: > Size in bit within the address range specified by reg. > =20 > + byte-mask: > + $ref: /schemas/types.yaml#/definitions/uint32 > + minimum: 1 > + description: > > + Bitmask selecting which physical bytes within the NVMEM device reg= ion > + contribute to this cell's output. Bit N set means physical byte N > + relative to the cell's base offset is included; selected bytes are > + packed into the output buffer in ascending byte order. Byte positi= ons > + are relative to the cell's base offset and limited to a 32-byte wi= ndow. > + The highest set bit must not reference a byte beyond the device si= ze. > + The number of set bits must not exceed the cell's logical size giv= en by > + reg. Cannot be used together with bits. Cells using byte-mask are > + read-only; write operations are not supported. > + [Severity: Medium] Does byte-mask redefine reg from the cell's physical address range to its logical output size? In Devicetree bindings and in fixed-cell.yaml (where bits selects a sub-ran= ge "within the address range specified by reg"), reg =3D describ= es the physical address span occupied in the parent NVMEM device. For any non-contiguous selection of K bytes, the highest set bit spans at least K += 1 physical bytes. If a DT author sets the reg size to the logical size K, physical reads exte= nd beyond the declared [offset, offset + K) reg range and hide physical address overlaps between sibling cells. If the author instead sets the reg size to the full physical span M > K, this description leaves the contents of the trailing M - K output bytes unspecified, and consumers expecting an exact K-byte cell (such as a 6-byte MAC address) receive an M-byte buffer. > allOf: > - if: > properties: > @@ -48,6 +62,13 @@ allOf: > const: 1 > required: > - "#nvmem-cell-cells" > + - if: > + required: [ byte-mask ] > + then: > + properties: > + bits: false > + description: > + byte-mask and bits are mutually exclusive. > =20 > required: > - reg [Severity: Medium] As reported by Srinivas Kandagatla on v3 [1], should non-contiguous byte selection be handled by an NVMEM layout driver rather than adding a byte-mask property to fixed-cell.yaml? The NVMEM layout infrastructure already supports custom multi-byte cell extraction and post-processing callbacks without extending the generic fixed-cell binding ABI. > diff --git a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml b/D= ocumentation/devicetree/bindings/nvmem/qcom,qfprom.yaml > index 566304ed4c786..d7f48d4ed1ba7 100644 > --- a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml > +++ b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml > @@ -42,6 +42,7 @@ properties: > - qcom,msm8976-qfprom > - qcom,msm8996-qfprom > - qcom,msm8998-qfprom > + - qcom,nord-qfprom > - qcom,qcm2290-qfprom > - qcom,qcs404-qfprom > - qcom,qcs615-qfprom [Severity: Low] Should the addition of qcom,nord-qfprom to qcom,qfprom.yaml be split into a separate patch? It is unrelated to the generic fixed-cell byte-mask proper= ty and is not mentioned in the commit message. [1] https://lore.kernel.org/r/ef5c8902-2a55-4879-8deb-5109f7bd3cd2@kernel.o= rg --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202-nvmem-byte= -mask-for-split-macaddr-v4-0-039f1b0afeca@oss.qualcomm.com?part=3D1