From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795437892; b=ZZqktH86Hz3I33AWVQCagrL0QEdxRMAjdwDCzl9hfdAMu7MoPCxl7EKos/P4+P+6Xp2J rXiYgNLUgyx8kX9UZqPKYwA25cEI4P85r0lOWgn0e5kETmubf4/5mFfzWiH7DKZLUPHCr N+I8uKxmSYG6zRPa/l1uVRhLxfYRP2if19CdLRt6HAQQFL/C/nROsrCIojUcZBIRXpiHR Kn6309N6rxSwPMXZmQXGMoNJukUSlgMdrUM6Shi00SI9o9QS/YEqFuazJSWHIeTpHQ+rE /nQmku7MOVopbD2T39/SECU/0bw0Y5x1O6PskSoJNWaTusKSKfgXFuWr+Z+qesASvvQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795437892; 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: Subject:Date:Message-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To:Cc:X-Mailer: X-Proofpoint-GUID:X-Proofpoint-Spam-Info: X-Proofpoint-Spam-Details-Enc:X-Authority-Analysis: X-Proofpoint-ORIG-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=UXlVpOLiSO5S62UBB5qFydN/m7fwmuZwW+kaCTezLoc=; b=k5o4/Sw2KnNOq7uxJdu+0S9DhtmUq3RXTB87rnSRh68DHQMD2XR+A3XATGpVedPOHYpA Y6aVHarw+Peq1NCEwlMr8Qkr4/y/ksWoY7TyR8LCxczO3YklR5+kxKXaXCQEbiLq0nuLh NPGhgotHAvo21Kg0znRq+hIXSy2jA0a5IsNIQ3j0vskmq5KMs0sFU+eLeXGCrWiPwcYsS z2kiB3d1jeKf0yT9ZeGQTNrOcyMvL/RQASOlOKGv/6FhaFS5Ue72e1pemflpiMReqvMIn tZIRSeTXXJRIWU0HDCg4BSBaoa5pUmwCiFkghOD0PNNsLro22/eiSoFZnY/tVrtl4OA== 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=b1miocEQ; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=bYwdmFKP; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 9AEC5606A31A for ; Mon, 23 Nov 2026 12:44:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9AEC5606A31A 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=b1miocEQ; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=bYwdmFKP Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6ANCFtQf550924 for ; Mon, 23 Nov 2026 12:44:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=UXlVpOLiSO5S62UBB5qFyd N/m7fwmuZwW+kaCTezLoc=; b=b1miocEQQqILL6Olob3/bgsy8jEJsnBMIlfLPs DW4MMqstjg81wlOiEXMcLAy4GgpbkiEj3A/lAmYp6qiXCaF03Dyr7dZFiZrpbHYQ pJVE1Hke4J36LvfLN9dsaDJMzcrp8egZzIKLa7wa/LZXm9oujA4Yfmua5Ih83ZNw jrXNv9Sly4xNUMAbaQKlxlSfp3mmLYEq1VEKSJobaqvFYSpj57i+m/6wRx2sWw5z kuyPrlpps3cO+u364j/NE+q/Yz8ooF7UnblCblcetN+jY6ffG0+dmSGSiaGuA9yD oIwS/cnfTZoStWKX9ee67C+TLKjgxFyxa6YiuJv7O4qea22w== Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j4ma0ran5-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 23 Nov 2026 12:44:50 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-946038e22f5so669022885a.0 for ; Mon, 23 Nov 2026 04:44:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795437890; x=1796042690; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=UXlVpOLiSO5S62UBB5qFydN/m7fwmuZwW+kaCTezLoc=; b=bYwdmFKPp+Hk0x8THolRMQpoGPMaCILA4iHXkFMckf7Gr+dyLV6sBtQgSkEX4GvO6G b04hcwAhHkCJYxEcgolnJF9NfVF2xh3x1nRFaTUOhqz5Je8Q1szBmN19Difqaz6+20yT jm8qBQbd5kKrTD8dNNMvBVn4gv5j53IeDhQ+i8x0YTZu5zs8bwg2stL0Yjcnt4oFR9R8 JYlgbMyNfDu8MH02sFMP6UP51PwtSiwLkIuzbEJghZt+3sgmXXhl5IjedYlLp0aVzXnY oonQSM8gvf/WPWO8Kd9xq9xmU28glDZY4vBSE43ARrKWy/0xXJz8HJ0GBUrYhTzqES4w UoXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795437890; x=1796042690; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=UXlVpOLiSO5S62UBB5qFydN/m7fwmuZwW+kaCTezLoc=; b=k7ydjKdr1dP88gs4A9AZQscnlz5tbuKl+TwOSS1olG0zvmrby/Czgo8frkWbjSCvtE 5o97uqHdPP15wPEKZHEb8skhQoNs4bo9LosSbTeHVCcWScW0uzRnQ+XTJOUv4ZdM27Gn UyBBEZl91W++AqiaMTUW4EamGb+e7gqAD9TGo5iGuhYm7cPxrkUaoLO4YlsCiRoo7Ab0 lL7ZuEtTaRGPnO96Z+paAIanii1xryUtPkV4PRKvxk7G8v7pL+wNE3sjH1Y7ePN9jVhX TsyLy5j/KGupRvLkAxsLtNd6D8UE9iZZj8dC3tY5NH1vQ67sFPgAVSi8HuWiENtM8owh yWFQ== X-Forwarded-Encrypted: i=1; AL+hErH7gBnYO/YS8lLGocsX8+mk2SfyrVF1QVaIC+tQclPSmBABH/yoOocsQY2xg9CFFcOvodX3mZiArzSVAuQ=@vger.kernel.org X-Gm-Message-State: APuU4Z/qnlfkqBRCZ7e1GXxPYI5zDoCi/aLls8VEUwzkSJUPgzIbkRJz 8MYVZyKGgpSvzWMxjw6Kl6q058vSIX5XxBZS+K3LjAu4wlyLqv4t/qZt6F+Gv6GMd79CwpMLmRn fpvr4t5PnZyHNB8zCrQ3ClNGMIVPP7YHJl72PNNSQbZ1hNn9wadHoHtppO5V0gf4iri0= X-Gm-Gg: AZFdTZcsONstnO8PVhp1XuZ2qk3CJvO2t3N9O0N8/EQQZ02EJFYO5gdhqxPXMWXK8Es mYkd/QHsfnmnSlh6gDga3OQOPrXLa+D/PiDWuRfXrog0xMSUamZ5X55EDKq6bHltIUNvGB9Su/s fTed+POdSScV145a2JklOwIZkeT2LYav+2aAEh9kc4pwdVEGBaKr+7zqub/XyDwZ3Bjhme05ZAA 6erLBWHkXpYQqH7oCzTUbCAFFgupQiAD3R7Azv+0Vuh87x5igW76WuJustD7X1+KYDz6bKhAgQu hEk6vt6m7W8+zM6qmxt/7AzBi8f1Hw2oBFfCVEjbA9ZJBmWKtNqXiDR3wRLiZvfhPO4nOMhU6nu XFhkyizIORFlaeix7anBm0g8isvrT1fKrJpnCcErcqPM2jT2qmLJsE17NOD++AZDapkkGxaYSY9 VoKY901xSpYm7q7cJ7BvzTMyf+fuS9DYbZuXDh2pqkzX15PeAKX0x0D4979lOSN7PxDfDNVv5a0 1sEpbL1rvrJBA6Ht8Vb854/aeEL X-Received: by 2002:a05:620a:4106:b0:949:61c5:73a5 with SMTP id af79cd13be357-949bab4dedemr1955825485a.59.1795437889772; Mon, 23 Nov 2026 04:44:49 -0800 (PST) X-Received: by 2002:a05:620a:4106:b0:949:61c5:73a5 with SMTP id af79cd13be357-949bab4dedemr1955818885a.59.1795437889192; Mon, 23 Nov 2026 04:44:49 -0800 (PST) Received: from QCOM-eG0v1AUPpu.na.qualcomm.com ([2a01:e0a:830:450:6c6b:1e5a:79dd:a527]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb8538b09bsm649355875e9.4.2026.11.23.04.44.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2026 04:44:48 -0800 (PST) From: Loic Poulain Subject: [PATCH v13 0/2] Support for block device NVMEM providers Date: Mon, 23 Nov 2026 13:44:43 +0100 Message-Id: <20261123-block-as-nvmem-v13-0-96ffe1f59332@oss.qualcomm.com> 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: 8bit X-B4-Tracking: v=1; b=H4sIADs1BGsC/3XSzU7DMAwH8FdBPdPJdr458R6IQ9o4rGJboYUKN O3dcXdppZBLJEfKL7HzvzYzTwPPzdPDtZl4GeZhvEiB6vGh6Y/x8sbtkGSjISALmnzbncb+vY1 ze1nOfG51p8Cz71IMsZFDHxPn4ecuvrxKfRzmr3H6vV+w4LpbpRZsobUxkWJnMEB8Huf58PkdT /14Ph9kaVZxoU0x4AqFROkyOk7JoNJcUdSmWCjfokTxZD1mAzEqU1H0XgmFokXRxiGx7Yh6W1H MTkEqFCNKMAwy6pxzgIpidwqVb7GiZCCZSeqTtqmiuE1xgIXiRFGZPYHhDNFXFL9XVKH4tSMfW VGXex1qPx12ioJCCWtHjoIyHl3qckVB2BgPtowdrIlhE3xH0cjwas4WXwQ0pbPmN3sJbu909q4 2YdwCjAjld+Oa4KwjRYkf/O/cbrc//KVE+rwDAAA= X-Change-ID: 20260428-block-as-nvmem-4b308e8bda9a To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Jens Axboe , Johannes Berg , Jeff Johnson , Bartosz Golaszewski , Marcel Holtmann , Luiz Augusto von Dentz , Balakrishna Godavarthi , Rocky Liao , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Simon Horman , Srinivas Kandagatla , Andrew Lunn , Heiner Kallweit , Russell King , Saravana Kannan , Christian Marangi , Eric Dumazet , Abel Vesa , Eric Dumazet Cc: linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-block@vger.kernel.org, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org, linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, daniel@makrotopia.org, Loic Poulain , Bartosz Golaszewski , Christoph Hellwig X-Mailer: b4 0.14.2 X-Proofpoint-GUID: ku6geawFio7_-M3eSG--AvG85aMx4S9F X-Proofpoint-Spam-Info: AW1haW4tMjYxMTIzMDA1MCBTYWx0ZWRfX/sWwNZIBdj6A lAvQyomXhLUBVh5X338GwUVCoVlH1+bJChQOVBHDXu+JW/u4Hf94Vj5ENVezyk5fTP4TfSrIS6n nfkU633WtZB+UjDXKQsUBM9XbkB60SY= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTIzMDA1MCBTYWx0ZWRfX7xOOk3Gk5E84 XZ3FhvJ1Nbgnvgy6abkkaZ2C33GUHsA+4QF2z27rVU6vmL00lS347818mgCYZt+zNGR2zgI5O4r jVDpeR6VAt1BbsY3eTAeC0sIse1yv91M+3Kxnz8D7+3jiDLuzyFt03oVDH48elp91MRSFpogsKK /kG9YhjGzEbXNuSIQzcCGvuSWi8tvDuoO8ZoFqfhMjUBOjcqsQjkseaLOZAb7CQWwkz9g63BWSP 5A/dokpoiHjwIcQUhVDXuit6P1wn0C7BgLfQ/qOb02fVx7pdCL6ULW8TZXv19RBSbse50l43KF2 QYUiT5t62jSR4eHUJhGxrof+BN+dMHNtagBaroetcy14m2quyw8bIHgFifgtOw26N+8T5bo7Gux uZThfHZKsO5O2Efb/40fJ0vfP4EjsH1AThKOla0JJGGkHrLo0BwnX14jizf5EeGHrPGf8Zt+Mhp 8CKaoz0xezQpw2AuuUQ== X-Authority-Analysis: v=2.4 cv=Yr+a1IYX c=1 sm=1 tr=0 ts=6b043542 cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=VwQbUJbxAAAA:8 a=VT4XjZGOAAAA:8 a=EUspDBNiAAAA:8 a=AqFB1GJ6SRIpTNvHVg0A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 a=6CpsfURP9XNmmWg3j1mJ:22 X-Proofpoint-ORIG-GUID: ku6geawFio7_-M3eSG--AvG85aMx4S9F 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-11-23_02,2026-11-23_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 adultscore=0 impostorscore=0 malwarescore=0 suspectscore=0 clxscore=1015 phishscore=0 spamscore=0 priorityscore=1501 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611230050 On embedded devices, it is common for factory provisioning to store device-specific information, such as Ethernet or WiFi MAC addresses, in a dedicated area of an eMMC partition. This avoids the need for and additional EEPROM/OTP and leverages the persistence of eMMC. One example is the Arduino UNO-Q, where the WiFi MAC address and the Bluetooth Device address are stored in the eMMC Boot1 partition. Until now, accessing this information required a custom bootloader to read the data and inject it into the Device Tree before handing control over to the kernel. This approach is fragile and leads to device-specific workarounds. Rather than adding a new NVMEM provider specifically to the eMMC subsystem, the new support operates at the block layer, allowing any block device to behave like other non-volatile memories such as EEPROM or OTP. This series builds on earlier work by Daniel Golle that enables block devices to act as NVMEM providers: https://lore.kernel.org/all/6061aa4201030b9bb2f8d03ef32a564fdb786ed1.1709667858.git.daniel@makrotopia.org/ Note that this is currently limited to MMC-backed block devices, as only the MMC core associates a firmware node with the block device (add_disk_fwnode). This can be easily extended in the future to support additional block drivers. Signed-off-by: Loic Poulain --- Changes in v13: - block/blk-nvmem: defer the NVMEM registration and removal to an ordered workqueue, fixing the self-deadlock on disk->open_mutex when a layout driver reads the device from nvmem_register(), and the ABBA deadlock between disk->open_mutex and nvmem->srcu in nvmem_unregister() (sashiko) - block/blk-nvmem: use bdev_fput() to yield the exclusive claim synchronously instead of deferring it through fput() (sashiko) - block/blk-nvmem: sample the block device size when queuing the registration, so that the validated value is the one handed to the NVMEM core - Link to v12: https://lore.kernel.org/r/20261102-block-as-nvmem-v12-0-f4a2a681087d@oss.qualcomm.com Changes in v12: - Simplify the series and remove consumer changes (BT/Net) that will be submitted separately. - Link to v11: https://lore.kernel.org/r/20261015-block-as-nvmem-v11-0-f890ac74f87d@oss.qualcomm.com Changes in v11: - Rebase on linux-next + resend - Link to v10: https://lore.kernel.org/r/20260806-block-as-nvmem-v10-0-be598b2a5606@oss.qualcomm.com Changes in v10: - block/blk-nvmem: simplify read error handling (Christoph) - block/blk-nvmem: verify dev_t wasn't reassigned before reading (sashiko) - block/blk-nvmem: drop __free() cleanup for explicit of_node_put() (Christoph) - block/blk-nvmem: init static nvmem_config fields at declaration (Christoph) - block/partitions/of: fix fwnode ref leak on skip/abort/error paths (sashiko) - Link to v9: https://lore.kernel.org/r/20260730-block-as-nvmem-v9-0-f72935817dbf@oss.qualcomm.com Changes in v9: - Add nvmem support for partition blocks, not only disk (Christoph) - Prevent concurrent exclusive access to the block device on read (Christoph) - Add comment about nvmem being a side channel for block device access (Christoph) - Link to v8: https://lore.kernel.org/r/20260703-block-as-nvmem-v8-0-98ae32bfc49a@oss.qualcomm.com Changes in v8: - block: Fix bdev->bd_nvmem on registering failure (sashiko) - net: of_net: of_get_nvmem_eui48() now also rejects all-ones cells (sashiko) - Bluetooth: mgmt: account for HCI_QUIRK_USE_BDADDR_NVMEM in is_configured() and get_missing_options() (sashiko) - Reword blk-nvmem KCONFIG help text to satisfy checkpatch - Link to v7: https://lore.kernel.org/r/20260701-block-as-nvmem-v7-0-3fe8205ef0a8@oss.qualcomm.com Changes in v7: - Rework bindings/dts so that the eMMC boot partition can be a nvmem fixed-layout and not a child of fixed-partition. (Rob) - Add Support for fixed-layout as the nvmem device node itself - Remove "block: partitions: of: Skip child nodes without reg property" This is no more required in this series and will be submitted separately (Rob) - Add missing linux/cleanup.h and linux/device.h includes (Bartosz) - simplify nvmem_register() error path using dev_err_probe() (Bartosz) - nvmem_device forward declaration to blk_types.h (Bartosz) - Add hci_dev_get_bd_addr_from_nvmem() kernel-doc for return value (Piotr) - Link to v6: https://lore.kernel.org/r/20260629-block-as-nvmem-v6-0-f02513dcd46d@oss.qualcomm.com Changes in v6: - blk_nvmem_add() returns int, error properly propagated (Bartosz) - Redundant if (bdev->bd_nvmem) guard removed in blk_nvmem_del() (Bartosz) - Size guard changed from UINT_MAX → INT_MAX to avoid signed overflow in config.size (sashiko) - BLK_OPEN_RESTRICT_WRITES removed from blk_nvmem_reg_read() (sashiko) - Link to v5: https://lore.kernel.org/r/20260612-block-as-nvmem-v5-0-95e0b30fff90@oss.qualcomm.com Changes in v5: - Fixed ath10k binding issue + extended commit message (Krzysztof) - Moved blk-nvmem handling to block core instead of a class_interface This allows correct/robust integration with block device life cycle (Bartosz). - block: partitions: of: Skip child nodes without reg property (sashiko) - Link to v4: https://lore.kernel.org/r/20260609-block-as-nvmem-v4-0-45712e6b22c6@oss.qualcomm.com Changes in v4: - Fix squash issue (dts commit incorrectly squashed) (Konrad) - Use devres for nvmem resources (Bartosz) - use __free() destructor helper when possible (Bartosz) - Fix value return checking for bdev_file_open_by_dev - Link to v3: https://lore.kernel.org/r/20260608-block-as-nvmem-v3-0-82681f50aa35@oss.qualcomm.com Changes in v3: - Fixed missing 'fixed-partitions' compatible in partition (Rob) - Fixed clashing nvmem cells, document calibration along mac (Sashiko) - Remove workaround to handle dangling nvmem references after unregistering, this is a generic nvmem framework issue handled in Bartosz's series: https://lore.kernel.org/all/20260429-nvmem-unbind-v3-0-2a694f95395b@oss.qualcomm.com/ - Validate mac (is_valid_ether_addr) before copying to output buffer - Link to v2: https://lore.kernel.org/r/20260507-block-as-nvmem-v2-0-bf17edd5134e@oss.qualcomm.com Changes in v2: - Fix example nvmem-layout cells to use compatible = "mac-base" - Squash WiFi MAC and Bluetooth BD address consumer patches into the nvmem layout patch - Fix possible use-after-free in blk-nvmem: bnv (nvmem priv) linked to nvmem lifetime - Simplify nvmem-cell-names from items: - const: to plain const: - Factor out common NVMEM EUI-48 retrieval logic - Reorder changes - Link to v1: https://lore.kernel.org/r/20260428-block-as-nvmem-v1-0-6ad23e75190a@oss.qualcomm.com --- Loic Poulain (2): block: partitions: of: Attach partition fwnode to the block device block: implement NVMEM provider block/Kconfig | 11 +++ block/Makefile | 1 + block/blk-nvmem.c | 197 ++++++++++++++++++++++++++++++++++++++++++++++ block/blk.h | 8 ++ block/genhd.c | 4 + block/partitions/check.h | 1 + block/partitions/core.c | 25 +++++- block/partitions/of.c | 3 + include/linux/blk_types.h | 4 + 9 files changed, 251 insertions(+), 3 deletions(-) --- base-commit: 909ef7a9a30fa139e69e555e3606680f5cca7726 change-id: 20260428-block-as-nvmem-4b308e8bda9a Best regards, -- Loic Poulain