[PATCH v5 1/5] mtd: spi-nor: core: add manufacturer flags

Michael Walle mwalle at kernel.org
Mon Sep 23 03:46:20 PDT 2024


Hi,

> I would gladly remove the obsolete mx25l12805d.

Why? I don't see any need for that.

> > If there isn't any way to distinguish the flashes at runtime (which I
> > doubt/challenge btw), then as a last resort we introduce a dedicated
> > compatible for the flash in cause and specify all needed parameters in a
> > dedicated flash entry. This shall be more generic as further flash
> > parameters can be statically specified in the dedicated flash entry,
> > less invasive for dt, and less confusing for people when they decide
> > whether to use OTP or not. OTP params in device tree is a no-go.
> >
> > But again, you have to prove why you can't distinguish the flash at
> > runtime before introducing a new flash compatible. So don't go this path
> > before sharing with us what you're trying to achieve.
>
> You keep sending me contradictory messages.
>
> I told you we can not "guess" OTP settings based on JEDEC ID and
> SFDP existence.

What are you trying to achieve here? I've told you we are trying
hard to figure out everything out at runtime. I'd suggest you start
with one particular device where you want OTP support for. If the
flash id is already in our database, find a way to distinguish
between the old and the new one; probably by looking at some SFDP
parameters. No need for any new compatible. Don't try to solve the
problem for all the chips out there.

Again, the reason why we are trying hard to determine that at
runtime is that these flashes are usually second source devices and
a manufacturer might just replace it with a (more or less)
compatible one. Therefore, the less information we put into the
devicetree the better. So before you are sending a new version with
the flash compatibles, you actually have to convince us that there
is no other way of knowing what kind of flash there is on your
board except for providing the name by the firmware.

-michael



More information about the linux-mtd mailing list