Re: [PATCH v3 06/23] mtd: spi-nor: Create an indirection on the part name
"Michael Walle" <[email protected]>
| Newsgroups | org.infradead.lists.linux-mtd,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On Thu Aug 13, 2026 at 5:19 PM CEST, Miquel Raynal wrote: > We currently print through sysfs and debugfs the name of the part if the > .name field, which is legacy, has been filled in the ID table (otherwise > "(null)" is printed). These IDs had an interest until manufacturers > started re-using more and more extensively the so called unique JEDEC > IDs. At this stage, a name that was tailored for a chip sold in 2016 may > no longer be relevant for a chip sold in 2026. Still showing this name > through the various filesystems may confuse people, removing these names > cannot be done since they are now part of the user ABI (because of > sysfs). > > In order to allow overwriting the .name field (which is part of a > read-only structure), let's create a spi-nor pointer which will by > default point to that .name, but which can be cleared in fixup hooks to > make sure the name is hidden on newer parts. > > Signed-off-by: Miquel Raynal <[email protected]> Reviewed-by: Michael Walle <[email protected]> ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/
signature.asc
(application/pgp-signature, 297 B)
-----BEGIN PGP SIGNATURE----- iKgEABMJADAWIQTIVZIcOo5wfU/AngkSJzzuPgIf+AUCan7ixRIcbXdhbGxlQGtl cm5lbC5vcmcACgkQEic87j4CH/gfkwGAn+E/Z3W8sOL6jUWx8OfIMeOInPNl3KQP A0KLjLQEzYH4B7PTsNTZGIGh5Rve79nAAYCjnFw9/rBYumr2UMeVS0p8GuSvLHef wxYQbofkSnJjUcKzPvSbO3QsWRzABFlFCDg= =dYL5 -----END PGP SIGNATURE-----