Re: [PATCH 4/8] block: implement NVMEM provider

From: Bart Van Assche
Date: Thu Mar 21 2024 - 15:44:43 EST


On 3/21/24 12:34, Daniel Golle wrote:
On embedded devices using an eMMC it is common that one or more partitions
on the eMMC are used to store MAC addresses and Wi-Fi calibration EEPROM
data. Allow referencing the partition in device tree for the kernel and
Wi-Fi drivers accessing it via the NVMEM layer.

Why to store calibration data in a partition instead of in a file on a
filesystem?

diff --git a/MAINTAINERS b/MAINTAINERS
index 8c88f362feb55..242a0a139c00a 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -3662,6 +3662,11 @@ L: linux-mtd@xxxxxxxxxxxxxxxxxxx
S: Maintained
F: drivers/mtd/devices/block2mtd.c
+BLOCK NVMEM DRIVER
+M: Daniel Golle <daniel@xxxxxxxxxxxxxx>
+S: Maintained
+F: block/blk-nvmem.c

Why to add this functionality to the block layer instead of somewhere
in the drivers/ directory?

Thanks,

Bart.