From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D60AE43901E for ; Tue, 28 Apr 2026 14:23:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777386194; cv=none; b=FsQ0lnoiQ52DLSFHzcV/vl48pgv4UaaZyxyfb1qyiTxhdLR0Md/p90YuHGOrYy4Qp8ku/BLysuzx/I83EJzg1cSHEoqgSIv4jFgTkZNCGmi3aPmknF5f27T86+UF2S9pw99BXqBJ7LIV674aOmCVjYGL/jGuSvHXtIS810PA+D4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777386194; c=relaxed/simple; bh=LijrkjFJMpmtl0RFSav1RQXDYuIS2GNEp12OlC/fnQU=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=c8za2AOPmRTcd9ivNr2GB5JYk6tMwglhw35FlH4Clpy327npZs8Xyd8e/JTPnhG4axGCROOOMfu0L2CLIN4xGykqKazXe7giO4nyFc6VzGuFMwkKZCC7YmuaHUVav1j/Z3ihr/qaOyegKjIYv/Btl3OHN5VUZJ6LLPlFGqhk370= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=C9wFGBxw; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=N5qAoWPK; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject 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.b="C9wFGBxw"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="N5qAoWPK" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 63S9hW7e2045176 for ; Tue, 28 Apr 2026 14:23:12 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=n4/CmuMpXrsR4zeR3KixXM kaiDP4I+U9UFoAoRmEES8=; b=C9wFGBxwZbGqSpHYgzveA7EzaOmjjhvoKBHZZ8 EZIfHBft9olSpK+OhwZGiP8bPv1yK+KpIVsBI5PUL5E+mu9jB6if/7LVM4B6xmv5 3hCmLavmsPtblF2qJN5Z1NOuhRr0Qnbt34yW5yE/2skFuZby1sOPsBSR5O7KO0DW gLXSq7zvnCVtvzb3q7hj48z9bx1EFTSYAM3m3VgSDG4yMqCqRNW+5hMfKXeZITx8 nU+eLTWivLYFiAH3TbfvvXf60/bZevkdcOt22fWAwFXS1Q5IfmAaVvBcgp00F08e h2DNFP5BZWUTJ1aBVvOKg7Oc1ynB5HzYRSI7gVi2vr4rmqig== Received: from mail-oo1-f69.google.com (mail-oo1-f69.google.com [209.85.161.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dttgys3t9-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 28 Apr 2026 14:23:11 +0000 (GMT) Received: by mail-oo1-f69.google.com with SMTP id 006d021491bc7-695391d14acso6578951eaf.2 for ; Tue, 28 Apr 2026 07:23:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1777386191; x=1777990991; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=n4/CmuMpXrsR4zeR3KixXMkaiDP4I+U9UFoAoRmEES8=; b=N5qAoWPKOWvmN7/XT95+5mHqC85xQtO4FyTcWhG0A6lZSOdalWGFzKopMwVKZxWF7I cSTbfOhLa/a4+NqasONV6MSBPVWk2bIOdBwImacuG53+KCcdMG9JagefA/r+vDJBhxue E9Un6ln62OnBdD+yvCZC7cQT4SMWsm2vg+3Osr3jzUVllXE9kpq5FT8V8wesItkAacef KOAfcK9Nv2G9JFeOiVGd81/kC00XQirgO/9PeeyWE2l7xKv0jASOxBVjeEJym9w1UYJf ja/ofkXvYIN5Kl0BiKbi6EyamR87IHQ3gXr1ZuEm6JrwtDnMJXCTilPcVmVoorFd2Pe8 LPAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777386191; x=1777990991; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=n4/CmuMpXrsR4zeR3KixXMkaiDP4I+U9UFoAoRmEES8=; b=e5uXVa0Y9abwgOOF+ewyqGEKPC84d6nU7miDllCfR69ScVtkzF57Sl/Flqt2jnKeFc kxLC92JGGD9YxzVt07RT+QT6OORYzFv+z1oUCMA2LgByVc2Yg+frjfUzYveZaev0xTQQ +2oHnAMt2NNRqac/2+pKlCIBse29KWLr1VA7AUOTV4NFqXQb5FQlT6wGo+J5StQTA8ix +6Vkj2vvkXagVtfL7jqm0KAjyQn+8myZyDXGQhncM/TyWHGNEwXkp7cydhYP4WwhhZXm 8reyX5bLvWbA6Fg0j/1uxnpzM9ZKYzguLxu/XUGjCsuV7pj5CwUMWETeo0XZkpY7XImA COOQ== X-Forwarded-Encrypted: i=1; AFNElJ/+tAktnlcvuVqVNzsMlqm8B2IrpsjwFjZNy+cYmksi6FrJwgkgo1FwU030n+g/Twvib9Cal1fEKTi1014=@vger.kernel.org X-Gm-Message-State: AOJu0YxwUA2Esgycx3TqqfhGzASdoQyOF8V3POjW5lKkqUSz9UImB98B Kjd/N1rn5jRYRz/FYDbzCIu7Hh4SjwSrmMQm+1re9abXgxdYyIXErJw8R6IwRXcQjrMN0Kl4W1f eHes5KSYD40XfqNcst4kqDEtQzF0sSqQDJn6iJUZ3jipeC/8+vtb/zYZriuRUKQOoDHA= X-Gm-Gg: AeBDiessFPXMAytFG4cxfnRz2pJgmqAmUWMwiG2M1cWkrmW//w84U+LLQXahogiBDJF fZeidjgVcLNqgBxMYw1MAUIDvm1f7ablGJ0lJGhvtrrBw9W4lEEIXUp9vT4F9GDiH9yXOYwHg+H H/WaksC0ICvlS+UeTt/PwQ6tkZNzgV7SxhflQU1nGpeaCqYRppiScqMp0hR1ibPCg4JYHB/ZIAo p2eS890pvzCaDKsd4hZvZBOInNzNz9lWtpsUkV4xHYW9ulI0whTm8NzQEGbLFtjVHoc7hgYcUPB 2YIhnT32RrXAUuD3F8KNaD8ZOK59RwtIracgjrtzXp4tMNiEqfIvCWgzycMnyQRl9HBh3UDU0pz lvXbUA/ke6qxcGKNGN1XbYzuZT2OD+v8vT4KqIgKQO6tEhU7hxqZSr1V20BuW/76MNzKmORidDc tmEUO9hHD7xBdiHvChyIfg9eyyVj8= X-Received: by 2002:a05:6820:1ca6:b0:694:a339:43ac with SMTP id 006d021491bc7-6965cb8b5fdmr1505717eaf.42.1777386190962; Tue, 28 Apr 2026 07:23:10 -0700 (PDT) X-Received: by 2002:a05:6820:1ca6:b0:694:a339:43ac with SMTP id 006d021491bc7-6965cb8b5fdmr1505690eaf.42.1777386190463; Tue, 28 Apr 2026 07:23:10 -0700 (PDT) Received: from QCOM-eG0v1AUPpu.na.qualcomm.com ([2a01:e0a:830:450:653f:4d28:6a78:a6ca]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-bb80ba9b8c8sm107072666b.48.2026.04.28.07.23.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Apr 2026 07:23:09 -0700 (PDT) From: Loic Poulain Subject: [PATCH 0/9] Support for block device NVMEM providers Date: Tue, 28 Apr 2026 16:23:05 +0200 Message-Id: <20260428-block-as-nvmem-v1-0-6ad23e75190a@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAMnC8GkC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIzMDEyML3aSc/ORs3cRi3byy3NRcXZMkYwOLVIuklETLRCWgpoKi1LTMCrC B0bG1tQDuQjwMYAAAAA== 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" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman 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 X-Mailer: b4 0.14.2 X-Proofpoint-ORIG-GUID: K3MX6WQEi3N_kGVALBHIEooXRsD2gwbM X-Proofpoint-GUID: K3MX6WQEi3N_kGVALBHIEooXRsD2gwbM X-Authority-Analysis: v=2.4 cv=cb7iaHDM c=1 sm=1 tr=0 ts=69f0c2cf cx=c_pps a=lVi5GcDxkcJcfCmEjVJoaw==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=VwQbUJbxAAAA:8 a=VT4XjZGOAAAA:8 a=EUspDBNiAAAA:8 a=d2RCo21-rtVxI0NFAHcA:9 a=QEXdDO2ut3YA:10 a=rBiNkAWo9uy_4UTK5NWh:22 a=6CpsfURP9XNmmWg3j1mJ:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDI4MDEzNiBTYWx0ZWRfXwrfzsWwQdJ2t qoE3gB1eljBWuJ24kY3l0NCkqBllfhJKUyz2HCvtbFgS198kdVsL68Jo3wvXKM65P0XU3zTYjxq 0IElOPSz1GMEAU8k0PrQ62+di3CpBKqqOywfcVXWDzAy1m+RP4n/UAfmRpa5MDbu1f2qPLR00gF JEV/LtpkeXDuI98SXLJS2vGKNa2WCVRTJvKCPCjn18HH3qlIXX6CIvicpUrsWaBlsPGBgGZR8Sd rxCs4VALOnWmM43yRTzXPEFEygJKo3xysZyvdkZYbr7h0kIfbZpXGadDtj3+9IA3y2gW7pj4aFE Fk1TD7Ut+Ww2x/We7l1w7QgTYyDRNxjrPrwSR2WtVr0jSx5+a4wheXAIc7eec3oaX3G2smIV+Rh X1Kf6Cbs/epxd8aIB32fD6Vhhb6HOkQTHhd0/QYEeRwAbPJJ2BmARjKsxEyuENMqmJTluQvPbdE S/QJ+iwo0+rxnQ3ODyQ== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-04-28_04,2026-04-28_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 clxscore=1015 impostorscore=0 bulkscore=0 lowpriorityscore=0 suspectscore=0 spamscore=0 priorityscore=1501 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604200000 definitions=main-2604280136 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/ It also introduces an NVMEM layout description for the Arduino UNO-Q, allowing device-specific data stored in the eMMC Boot1 partition to be accessed in a standard way. WiFi and Ethernet already support retrieving MAC addresses from NVMEM. Bluetooth requires similar support, which is also addressed. Note that this is currently limited to eMMC-backed block devices, as only the eMMC 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 --- Daniel Golle (1): block: implement NVMEM provider Loic Poulain (8): dt-bindings: mmc: Document support for nvmem-layout arm64: dts: qcom: arduino-imola: Describe boot1 NVMEM layout dt-bindings: net: wireless: qcom,ath10k: Add NVMEM MAC address cell arm64: dts: qcom: arduino-imola: Get WiFi MAC from NVMEM dt-bindings: bluetooth: qcom: Add NVMEM BD address cell Bluetooth: hci_sync: Add NVMEM-backed BD address retrieval Bluetooth: qca: Set NVMEM BD address quirks when address is invalid arm64: dts: qcom: arduino-imola: Get Bluetooth BD address from NVMEM .../devicetree/bindings/mmc/mmc-card.yaml | 20 +++ .../net/bluetooth/qcom,bluetooth-common.yaml | 10 ++ .../bindings/net/wireless/qcom,ath10k.yaml | 10 ++ arch/arm64/boot/dts/qcom/qrb2210-arduino-imola.dts | 30 ++++ block/Kconfig | 9 ++ block/Makefile | 1 + block/blk-nvmem.c | 164 +++++++++++++++++++++ drivers/bluetooth/btqca.c | 5 +- include/net/bluetooth/hci.h | 18 +++ net/bluetooth/hci_sync.c | 56 ++++++- 10 files changed, 321 insertions(+), 2 deletions(-) --- base-commit: 47c4835fc0fed583d01d90387b67633950eba2b2 change-id: 20260428-block-as-nvmem-4b308e8bda9a Best regards, -- Loic Poulain