mtd: spi-nor: add generic flash driver
authorMichael Walle <michael@walle.cc>
Wed, 10 Aug 2022 22:06:53 +0000 (00:06 +0200)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Mon, 21 Nov 2022 13:37:16 +0000 (15:37 +0200)
commit773bbe10449731c9525457873e0c2342e5cf883b
treea435d310e5d41d2db99112f7a0a18303a521f0fd
parent39eece67a3cf027aa5b39d7da5feadc4711504e6
mtd: spi-nor: add generic flash driver

Our SFDP parsing is everything we need to support all basic operations
of a flash device. If the flash isn't found in our in-kernel flash
database, gracefully fall back to a driver described solely by its SFDP
tables.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Tested-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
Link: https://lore.kernel.org/r/20220810220654.1297699-7-michael@walle.cc
drivers/mtd/spi-nor/core.c
drivers/mtd/spi-nor/core.h
drivers/mtd/spi-nor/sfdp.c