mtd: spi-nor: Add post_sfdp() hook to tweak flash config
authorBoris Brezillon <boris.brezillon@bootlin.com>
Sat, 24 Aug 2019 12:07:09 +0000 (12:07 +0000)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Wed, 28 Aug 2019 09:40:28 +0000 (12:40 +0300)
commit2b12ae1f2fe5f1cd87e20b91231a22390afd0464
tree4c5c18f9effd7d0363309acecc8989668ba9fd16
parentdff972458acb05ab919b6950da99f8172ab14836
mtd: spi-nor: Add post_sfdp() hook to tweak flash config

SFDP tables are sometimes wrong and we need a way to override the
config chosen by the SFDP parsing logic without discarding all of it.

Add a new hook called after the SFDP parsing has taken place to deal
with such problems.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
drivers/mtd/spi-nor/spi-nor.c