[PATCH 5/6] mtd: spi-nor: add generic flash driver

Tudor.Ambarus at microchip.com Tudor.Ambarus at microchip.com
Wed Jul 27 20:28:46 PDT 2022


On 5/13/22 16:35, Michael Walle wrote:
> It is still recommended to add the flash to the in-kernel database.
> First, we get a proper partname and secondly, for all features not

I wouldn't advertise to add an entry in the flash_info array just for
the sake of a proper name. The name shouldn't matter. If all the flash
caps can be discovered when parsing SFDP let's not add an entry at all.

> described by the SFDP like OTP we need the entry anyway.

Yeah, caps like OTP are not SFDP discoverable, we should add a flash_entry
when things can not be discovered solely by parsing SFDP.

-- 
Cheers,
ta


More information about the linux-mtd mailing list