[PATCH 03/30] mtd: spi-nor: winbond: Stop filling the .name entry
Miquel Raynal
miquel.raynal at bootlin.com
Mon Aug 10 06:17:09 PDT 2026
On 10/08/2026 at 09:22:45 +02, "Michael Walle" <mwalle at kernel.org> 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
More information about the linux-mtd
mailing list