Re: [PATCH] mtd: spi-nor: xmc: Add XM25QH128C identification

"Fabio Estevam" <[email protected]> Mon, 20 Jul 2026 20:43:31 +0200
Newsgroups org.infradead.lists.linux-mtd
Message-ID <[email protected]>
On Monday, July 20, 2026 03:45 -03, "Michael Walle" <[email protected]> wrote:

> So why do you need an entry? We don't add .names on new entries.

Currently, I see:

root@rk3399-station-p1:~# cat /sys/bus/spi/devices/spi1.0/spi-nor/partname
spi-nor-generic
root@rk3399-station-p1:~# cat /sys/bus/spi/devices/spi1.0/spi-nor/jedec_id
204018204018
root@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@rk3399-station-p1:~# 

After this patch:

root@rk3399-station-p1:~# cat /sys/bus/spi/devices/spi1.0/spi-nor/partname
XM25QH128C
root@rk3399-station-p1:~# cat /sys/bus/spi/devices/spi1.0/spi-nor/jedec_id
204018
root@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.


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/