Re: [PATCH] mtd:?==?utf-8?q? spi-nor: xmc: Add XM25QH128C identification
Fabio Estevam
festevam at nabladev.com
Mon Jul 20 11:43:31 PDT 2026
On Monday, July 20, 2026 03:45 -03, "Michael Walle" <mwalle at kernel.org> wrote:
> So why do you need an entry? We don't add .names on new entries.
Currently, I see:
root at rk3399-station-p1:~# cat /sys/bus/spi/devices/spi1.0/spi-nor/partname
spi-nor-generic
root at rk3399-station-p1:~# cat /sys/bus/spi/devices/spi1.0/spi-nor/jedec_id
204018204018
root at rk3399-station-p1:~# cat /sys/bus/spi/devices/spi1.0/spi-nor/manufacturer
cat: /sys/bus/spi/devices/spi1.0/spi-nor/manufacturer: No such file or directory
root at rk3399-station-p1:~#
After this patch:
root at rk3399-station-p1:~# cat /sys/bus/spi/devices/spi1.0/spi-nor/partname
XM25QH128C
root at rk3399-station-p1:~# cat /sys/bus/spi/devices/spi1.0/spi-nor/jedec_id
204018
root at rk3399-station-p1:~# cat /sys/bus/spi/devices/spi1.0/spi-nor/manufacturer
xmc
The advantage of this patch is to provide the partname and manufacturer entries for userspace.
If this is not wanted, feel free to discard this change.
More information about the linux-mtd
mailing list