Re: [PATCH 03/30] mtd: spi-nor: winbond: Stop filling the .name entry
Miquel Raynal <[email protected]>
| Newsgroups | gmane.linux.kernel,gmane.linux.drivers.mtd |
|---|---|
| Message-ID | <[email protected]> |
On 10/08/2026 at 09:22:45 +02, "Michael Walle" <[email protected]> wrote: > On Thu Aug 6, 2026 at 11:47 AM CEST, Miquel Raynal wrote: >> Hello, >> >>>> Replace the names with a comment above the entry with the newly instated >>>> naming scheme to indicate what chips are covered by each entry. >>> >>> This is exported via sysfs, so this could be a regression. >> >> Well, actually names are not exported through sysfs. Only the mtd name >> is available through sysfs, and it is set to `spiX.Y`. That name is only >> available through debugfs, which is not part of the stable API. >> >> I should have checked before dropping all my patches... > > That's not correct, see > > https://elixir.bootlin.com/linux/v7.1.7/source/drivers/mtd/spi-nor/sysfs.c#L21 True, it is further down the sysfs maze: # cat /sys/class/mtd/mtd0/name spi0.0 # cat /sys/class/mtd/mtd0/device/spi-nor/partname FOO So that means I have to find a way to drop that name for the RV addition. Thanks! Miquèl