[PATCH v4 3/7] mtd: spi-nor: sfdp: expose the SFDP as a read-only NVMEM device

Takahiro.Kuwano at infineon.com Takahiro.Kuwano at infineon.com
Fri Jul 3 02:21:33 PDT 2026


> Hi,
> 
> > Register the cached SFDP as a read-only NVMEM device rooted at the
> > flash's "sfdp" child node, exposing it in on-flash byte order. This lets
> > NVMEM cells reference any SFDP data: a fixed-layout for parameters at a
> > known offset, or an nvmem-layout parser for vendor data whose location
> > must be discovered at runtime. The device is only registered when an
> > "sfdp" node is present in the device tree.
> >
> > Signed-off-by: Manikandan Muralidharan <manikandan.m at microchip.com>
> 
> SFDP is exposed in sysfs (e.g., /sys/bus/spi/devices/spi0.0/spi-nor/sfdp).
> Why don't you just use this existing entry?

Sorry, sysfs is for userspace.
Please just disregard my previous comment.
 
Thanks,
Takahiro




More information about the linux-arm-kernel mailing list