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

"Michael Walle" <[email protected]>
Newsgroups gmane.linux.kernel,gmane.linux.drivers.mtd
Message-ID <[email protected]>
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
signature.asc (application/pgp-signature, 297 B)
-----BEGIN PGP SIGNATURE-----

iKgEABMJADAWIQTIVZIcOo5wfU/AngkSJzzuPgIf+AUCanl8RRIcbXdhbGxlQGtl
cm5lbC5vcmcACgkQEic87j4CH/jhOgF9H3WqxZwYmkCI2xW1paqsyB36z83UiJER
/USZT29+mvjcvnew3cSnknAeVGX6OkaDAX0ec83mVk9/RHJx9W84z7AF3fRllu34
NuXJcbI+R+hD9GkCSt11CXKLHH21udp46Nc=
=8MRV
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.