From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.180.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796211395; b=u30u/iWJS725btv3o/DmY5XT44q7OkDVtxARheAqFfdxez/I0YII0t07NFdIcfpPrWJ9 CsL5C0avkHD+SEy94ViUFrvoqU1WGzUzVQ+eqIkEq4x2+0QE33YMl0w31IV0QVl9zbJE4 TvaqTmHfz222bBAg+KUM7fVXUTJ/9lKqj2f224+8JFjJlxNFCLIW2ieQhOEw3q7NWULIi 7KcKRq+xiua6AXbyO7a176xVqSVgG2urxesp5l55aNns5FSMXdz1icLURYHlz8bSqiXHe XGlqwEV6vbjN/vR/OLAkRYlVXXp7/QU6xyc07mhvMsIMxMRwno/vrqvEvKb1K7t4u8Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796211395; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:From:Date: Subject:MIME-Version:Content-Type:Content-Transfer-Encoding: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Proofpoint-Spam-Details-Enc: X-Proofpoint-GUID:X-Proofpoint-ORIG-GUID:X-Authority-Analysis: X-Proofpoint-Spam-Info:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=VoNRwS+TtcbM8J9SeVbcLxWp8HGpjcClaeSFz6/yJs8=; b=x3iOe5j0MRX35SxaM6eX4mD+IuMaqnnm04QcvuvCxKvW4HjmWk3eUHyUI8tUwxKa5eXT pLb1FS9s8V8frE492tKHZOvx4DezTUPu9Ep9C0t22kNDLDvmrAezKETgmTXg3J87SKrQO 8QWpbQS8J3KMhXf42CV7gHqYgW1Y9S16hw5hnWdjOT/uvA5UPo2S+XjYX9SMykH92+U5p FQJVTAaB7l7LLzfIB4t/gXBy84JCQ4+GOkLTE5PxBDDsxL9AO5qPdxkS1nrfmhWtyMOo7 sw/7NWwLVcsgkqguuHPP4nrMkz9WrtA9NPGCn7dFspkm6vbED+OxmipuiQaDRfCFbJg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=kecagpjt; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=eY2f6vZa; arc=none smtp.remote-ip=205.220.180.131 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0A5C1606A695 for ; Wed, 2 Dec 2026 11:36:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0A5C1606A695 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=kecagpjt; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=eY2f6vZa Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B26p9QL018893 for ; Wed, 2 Dec 2026 11:36:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= VoNRwS+TtcbM8J9SeVbcLxWp8HGpjcClaeSFz6/yJs8=; b=kecagpjtfiuUNKZY gy4kJSZF3oLm1lkZfJirjfa0duUZLR/Fu36Mw++S8HHg3kEVfXTvgcK4iCi/vIi1 qt8LpI3/PK4Tq/ThemKbX2Is7Ooj1jAw0PE9pp5Ss7Q2b3NT4sqpc/heAJWwXW9d BoAwivtTRzEVqw3VFZaXtq6Y26kO8CPvytwgcYHth97AdxB6QC0CcII8B+8R7AJm 2mKvOXWD1DeZyDiA0AfhlWD32mB0g6x3guwH1eUAYPFh0ofhIgfUOXpkICchz/Zp ipMYXaSVjwvlmfi2XFuhaaPbsOqmv2V06jrtAUfyu/GJAlpvTZZWoNEe12h6opHY UMuQNQ== Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ja4k0bask-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 02 Dec 2026 11:36:33 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-3b4cd0f7abfso11250936a91.3 for ; Wed, 02 Dec 2026 03:36:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796211393; x=1796816193; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=VoNRwS+TtcbM8J9SeVbcLxWp8HGpjcClaeSFz6/yJs8=; b=eY2f6vZaRS1pEwgZPstFo8YrdLNWFSHo+37JFt1SRULPvleqfb9CNhfzlFUMwuSd0i DjUV6k567VO7Su5WLWTokMq5NxogNLCONPVwXbyVQ7HATkbnNqOZsRUQZFshI5DM7SQs ToRmYuasgar3gFH22ZlLGc2uiHLIu76adLaU+HyAcj0E5qlwlwsZZbT0RMBY79UGqzL6 jjE9PNY1JJoSsbvIZxaOu0MQ9+11eMYczu+fjet+xeRbh3TVl8twT9J8C12m2vLtDC3j 10ygI6JebNNi21rCNJRlcKV/Tlr4vCH4j+PKaUeljntS/WO/t8J53j70EWXNupAu1dcz cb2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796211393; x=1796816193; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=VoNRwS+TtcbM8J9SeVbcLxWp8HGpjcClaeSFz6/yJs8=; b=S7EjPJPtN/2ivEDTZXxPtX+WScZrqfsg8sPqwbmvcVLwZyX7e8TJyObkqO+zQhjHkt up+1A58iLLXNNGU9XcyyIHXgx8ORfwUsECSNKEqSlwS/0xeSMa5e0BtIktxYjW6QWolk 6Vab1Ik6uSqN4WFuxkX7r4aj8EU31cPf1bmoMPZmNyonLtqC5nWijCNTbA1ZwAmz2lIs rYwsUYOgx+Yx6A8bky6WSDRirefolqIPnuJ0/jnNJ9LkBdDfPu3W3aEXefoNcmO53VjL PDuMWy0pw1K0tjp/2uyZzYu4plzkhFOYXcR7+mkC1fDQ4Zj4l+v0YBZ4WsM/uJS5N+dH /Zyg== X-Forwarded-Encrypted: i=1; AL+hErFV2iTJKVc3hBIRnDJzdvf4CwbHlO4tRFmbflIB2/WvkaEJmvUrbibWaz7IgjSxcOItzdw0npds0JZQgaI=@vger.kernel.org X-Gm-Message-State: APuU4Z+IYGK60JIAgJ+vtoK5j+yobn5vBxWbCtb0RAqRHknoGmPyqqpJ bUghDHqN4nRGFdwrATa/dg/BMwsuLei8h6Uu68HPLgWJt4FZRUyf1Zjd0RUWDtgvWQN5CF/Y/ty HMxfOn5ZjRVGWycM09Y68xVKVurVChuppECn/1UbWtNCLEFcHroNtSd/jF0wnm3rRdJI= X-Gm-Gg: AZFdTZfq25XELFXqG49Dueme6RLrrkZJ/YPC0uI6CCoCQyAIw4lBfAc67a+d1ZpGtd/ ykCCcXIM1A+rW/oZIvzXGHBVR5TQODnc9ZswH/qo7EqbPXyDxkJz4ePyxCf2s+uNwaNReLN2JQB MAuwnNb2bVO39Hq6tVdeUoGHlUj+vFCjkz2S/eshMPxVuTgQZEiDatAq8cJx7vQ+KGZf3T9Ji2j JMOGcWcqeabrBk+nTBU9P5G2y1wW0veteC0ZFPc/EDeznCGtiWI3MjhxcEATGmFlh1VqGBZyt4z VBpekXCClcEAGNvOxGEcoNQlK01Nwyc1NiZEPr6sPeyV+oOS47AJWntvdIRjyCdyua2bLSjGXV1 spGdpjZd0LQZROeTO9iKb70VRupyuDE0gREJ/HJTPjt+gIH9rcDsUwqxwTcZWD0zyzkEfP1BwB7 AbOSMnOFzUSkfzX+zRNrfkvHR+i65b6m2b X-Received: by 2002:a17:90b:2e8c:b0:3b3:b373:6a6a with SMTP id 98e67ed59e1d1-3b41c9e45c3mr41658016a91.28.1796211392781; Wed, 02 Dec 2026 03:36:32 -0800 (PST) X-Received: by 2002:a17:90b:2e8c:b0:3b3:b373:6a6a with SMTP id 98e67ed59e1d1-3b41c9e45c3mr41657982a91.28.1796211392175; Wed, 02 Dec 2026 03:36:32 -0800 (PST) Received: from alfred-sh01-lnx.ap.qualcomm.com (i-global052.qualcomm.com. [199.106.103.52]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b44b73b2b3sm31078342a91.2.2026.12.02.03.36.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 03:36:31 -0800 (PST) From: Hongmei Xu Date: Wed, 02 Dec 2026 19:36:19 +0800 Subject: [PATCH v4 2/3] nvmem: core: add byte-mask support for non-contiguous cell bytes X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261202-nvmem-byte-mask-for-split-macaddr-v4-2-039f1b0afeca@oss.qualcomm.com> References: <20261202-nvmem-byte-mask-for-split-macaddr-v4-0-039f1b0afeca@oss.qualcomm.com> In-Reply-To: <20261202-nvmem-byte-mask-for-split-macaddr-v4-0-039f1b0afeca@oss.qualcomm.com> To: Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?utf-8?q?Rafa=C5=82_Mi=C5=82ecki?= Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Hongmei Xu X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796211383; l=7363; i=hongmei.xu@oss.qualcomm.com; s=20260917; h=from:subject:message-id; bh=ShDFJnDonjnKccpMuvBayR26zt22z2glIqSe+McEOEY=; b=4RWFHNUJVmNyK1SrkQg2O9ZOhIdcvmL6ycrU8NVLJjr6Wk52mV6ee1Cb6ITO5l3pLxBGNe8qK 7IpbyxR0MkhCaB92rxo3/9e3TeAvdEyP951KOCStWJVxtzr7YnEtQnY X-Developer-Key: i=hongmei.xu@oss.qualcomm.com; a=ed25519; pk=8J3IzbyuOOHSwLvktng8AEQIdStEQDAGNCSOlkASmk4= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAyMDA0NiBTYWx0ZWRfX0aaITAYF5M/r tPBI69H4nWe+d4Aha/n5vx0CnC0N5vlexy6jSZIWiS3Ig47lZFjKmIEkRilb510JzfCw6kFr3J8 ga1TJ42UxJOOCphq7sBVqWqMwFlEe8RHSSVoIEdnqFyUEpco0Bs1xCKm/eVWEtW2FuBIdhWpXrU Is9Q9dCvlTsPqXtnuLmwDPFCpafdGUozbd8GaQMyurt5oalkQk6aTLBAAtxDvw5/YtNuss/G2Wq u8s09lXvTwA09z22hS62KxjWNbXqgL2PNW+T3fCrA+FdMKSvoNft3WNvZMV5ILQZnSgBfqh/uwM gFuzQuW+HofSU13NrMTPnAjB4tiiniWPn6T7T5Pu/vEmn5WmKVqj7pz80pe5kZKPhdzZR7GLlqp vb+DUPOTvk+tvnrm1FdFhG/RVOpyjY+VbwAhFZjk1CKC56igXoaY7Ag1LsN+tJscScDaxDnXtRa xNIL4ebqfcv/bzDQ9VA== X-Proofpoint-GUID: PQTZQtBizA-p6Vg2113Hvr9ePzTVZLmw X-Proofpoint-ORIG-GUID: PQTZQtBizA-p6Vg2113Hvr9ePzTVZLmw X-Authority-Analysis: v=2.4 cv=I+Tw19gg c=1 sm=1 tr=0 ts=6b1002c1 cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=b9+bayejhc3NMeqCNyeLQQ==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8 a=2v3GwsEA9jBGmIuPRc0A:9 a=QEXdDO2ut3YA:10 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAyMDA0NiBTYWx0ZWRfX8Y3apwWTrYOo SQvzxApPg15f0jdkPJ51hztc6wCWY7vKfuZo+iBNtzDNrBvByvGH7x99gRJKc+CM0nrQOekiXn3 R8wdq+yqtl+//0BJ15nt9y5tyzjG5do= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-02_02,2026-12-01_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 clxscore=1015 malwarescore=0 spamscore=0 phishscore=0 adultscore=0 lowpriorityscore=0 bulkscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612020046 Add support for a byte-mask cell property that selects non-contiguous physical bytes from an NVMEM device region to form a logical cell value. When byte-mask is set, bit N set in the mask means physical byte N is included; selected bytes are packed into the output buffer in ascending byte order. If fewer bytes are selected than the cell's logical size given by reg, the remaining output bytes are zero-filled. Four checks are performed at cell registration: - byte-mask and bits/bit-offset are mutually exclusive. - The cell offset must not exceed the device size. - The number of set bits must not exceed the cell's logical size (reg), to prevent output buffer overflow. - The highest set bit must not reference a byte beyond the NVMEM device size. Signed-off-by: Hongmei Xu --- drivers/nvmem/core.c | 95 +++++++++++++++++++++++++++++++++++++++--- include/linux/nvmem-provider.h | 8 ++++ 2 files changed, 97 insertions(+), 6 deletions(-) diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index 7d4cce8e2742..8bc657cd9930 100644 --- a/drivers/nvmem/core.c +++ b/drivers/nvmem/core.c @@ -33,6 +33,7 @@ struct nvmem_cell_entry { int bytes; int bit_offset; int nbits; + u32 byte_mask; nvmem_cell_post_process_t read_post_process; void *priv; struct device_node *np; @@ -589,6 +590,47 @@ static void nvmem_cell_entry_add(struct nvmem_cell_entry *cell) blocking_notifier_call_chain(&nvmem_notifier, NVMEM_CELL_ADD, cell); } +static int nvmem_validate_byte_mask(struct nvmem_device *nvmem, + const struct nvmem_cell_info *info) +{ + int out_bytes; + + if (!info->byte_mask) + return 0; + + if (info->nbits || info->bit_offset) { + dev_err(&nvmem->dev, + "cell %s byte-mask and bits are mutually exclusive\n", + info->name ?: ""); + return -EINVAL; + } + + if (info->offset >= nvmem->size) { + dev_err(&nvmem->dev, + "cell %s offset %u exceeds device size %zu\n", + info->name ?: "", info->offset, nvmem->size); + return -EINVAL; + } + + out_bytes = hweight32(info->byte_mask); + if (out_bytes > info->bytes) { + dev_err(&nvmem->dev, + "cell %s byte-mask set-bit count %d exceeds reg size %d\n", + info->name ?: "", out_bytes, info->bytes); + return -EINVAL; + } + + if (ALIGN(fls(info->byte_mask), nvmem->word_size) > nvmem->size - info->offset) { + dev_err(&nvmem->dev, + "cell %s byte-mask bit %d exceeds device size %zu\n", + info->name ?: "", + fls(info->byte_mask) - 1, nvmem->size); + return -EINVAL; + } + + return 0; +} + static int nvmem_cell_info_to_nvmem_cell_entry_nodup(struct nvmem_device *nvmem, const struct nvmem_cell_info *info, struct nvmem_cell_entry *cell) @@ -603,12 +645,22 @@ static int nvmem_cell_info_to_nvmem_cell_entry_nodup(struct nvmem_device *nvmem, cell->bit_offset = info->bit_offset; cell->nbits = info->nbits; + cell->byte_mask = info->byte_mask; cell->np = info->np; + if (cell->byte_mask) { + int rc = nvmem_validate_byte_mask(nvmem, info); + + if (rc) + return rc; + } + if (cell->nbits) { cell->bytes = DIV_ROUND_UP(cell->nbits + cell->bit_offset, BITS_PER_BYTE); cell->raw_len = ALIGN(cell->bytes, nvmem->word_size); + } else if (cell->byte_mask) { + cell->raw_len = ALIGN(fls(info->byte_mask), nvmem->word_size); } if (!IS_ALIGNED(cell->offset, nvmem->stride)) { @@ -804,7 +856,7 @@ int nvmem_add_cells_from_dt(struct nvmem_device *nvmem, struct device_node *np) { struct device *dev = &nvmem->dev; const __be32 *addr; - int len, ret; + int len, ret = 0; for_each_child_of_node_scoped(np, child) { struct nvmem_cell_info info = {0}; @@ -829,10 +881,13 @@ int nvmem_add_cells_from_dt(struct nvmem_device *nvmem, struct device_node *np) info.nbits < 1 || info.bit_offset + info.nbits > BITS_PER_BYTE * info.bytes) { dev_err(dev, "nvmem: invalid bits on %pOF\n", child); + kfree(info.name); return -EINVAL; } } + of_property_read_u32(child, "byte-mask", &info.byte_mask); + info.np = of_node_get(child); if (nvmem->fixup_dt_cell_info) @@ -1648,28 +1703,52 @@ static int __nvmem_cell_read(struct nvmem_device *nvmem, struct nvmem_cell_entry *cell, void *buf, size_t *len, const char *id, int index) { + u8 *rawbuf = NULL; + void *readbuf = buf; int rc; - rc = nvmem_reg_read(nvmem, cell->offset, buf, cell->raw_len); + if (cell->byte_mask) { + rawbuf = kzalloc(cell->raw_len, GFP_KERNEL); + if (!rawbuf) + return -ENOMEM; + readbuf = rawbuf; + } + + rc = nvmem_reg_read(nvmem, cell->offset, readbuf, cell->raw_len); if (rc) - return rc; + goto err_exit; /* shift bits in-place */ if (cell->bit_offset || cell->nbits) nvmem_shift_read_buffer_in_place(cell, buf); + /* compact non-contiguous bytes selected by byte_mask */ + if (cell->byte_mask) { + int out_idx = 0; + int i; + + for (i = 0; i < cell->raw_len; i++) { + if (cell->byte_mask & BIT(i)) + ((u8 *)buf)[out_idx++] = rawbuf[i]; + } + memset((u8 *)buf + out_idx, 0, cell->bytes - out_idx); + } + if (cell->read_post_process) { rc = cell->read_post_process(cell->priv, id, index, - cell->offset, buf, cell->raw_len); + cell->offset, buf, + cell->byte_mask ? cell->bytes : cell->raw_len); if (rc) - return rc; + goto err_exit; } if (len) *len = cell->bytes; - return 0; +err_exit: + kfree(rawbuf); + return rc; } /** @@ -1776,6 +1855,10 @@ static int __nvmem_cell_entry_write(struct nvmem_cell_entry *cell, void *buf, si if (cell->read_post_process) return -EINVAL; + /* byte-mask cells have no scatter-write implementation yet */ + if (cell->byte_mask) + return -EINVAL; + if (cell->bit_offset || cell->nbits) { if (len != BITS_TO_BYTES(cell->nbits) && len != cell->bytes) return -EINVAL; diff --git a/include/linux/nvmem-provider.h b/include/linux/nvmem-provider.h index 6063fe5b7784..066d27bb4284 100644 --- a/include/linux/nvmem-provider.h +++ b/include/linux/nvmem-provider.h @@ -57,6 +57,13 @@ struct nvmem_keepout { * @bytes: Length of the cell. * @bit_offset: Bit offset if cell is smaller than a byte. * @nbits: Number of bits. + * @byte_mask: Bitmask selecting physical bytes to include in the output. + * Bit N=1 means physical byte N relative to the cell's base + * offset is packed into the output buffer; bit N=0 means skip. + * The physical read window extends to the highest set bit, + * aligned to the device word size. The number of set bits must + * not exceed the cell's logical size (bytes). Unselected output + * positions are zero-filled. Zero means no masking. * @np: Optional device_node pointer. * @read_post_process: Callback for optional post processing of cell data * on reads. @@ -69,6 +76,7 @@ struct nvmem_cell_info { unsigned int bytes; unsigned int bit_offset; unsigned int nbits; + u32 byte_mask; struct device_node *np; nvmem_cell_post_process_t read_post_process; void *priv; -- 2.34.1