[PATCH 03/30] mtd: spi-nor: winbond: Stop filling the .name entry

Michael Walle mwalle at kernel.org
Mon Aug 10 00:22:45 PDT 2026


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

-michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 297 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20260810/4ec91095/attachment.sig>


More information about the linux-mtd mailing list