On Thu, 2018-12-06 at 10:37:35 UTC, Boris Brezillon wrote: > Experience has proven that SFDP tables are sometimes wrong, and parsing > of these broken tables can lead to erroneous flash config. > > This leaves us 2 options: > > 1/ set the SPI_NOR_SKIP_SFDP flag and completely ignore SFDP parsing > 2/ fix things at runtime > > While #1 should always work, it might imply extra work if most of the > SFDP is correct. #2 has the benefit of keeping the generic SFDP parsing > logic almost untouched while allowing SPI NOR manufacturer drivers to > fix the broken bits. > > Add a spi_nor_fixups struct where we'll put all our fixup hooks, each > of them being called at a different point in the scan process. > > We start a hook called just after the BFPT parsing to allow fixing up > info extracted from the BFPT section. More hooks will be added if other > sections need to be fixed. > > Signed-off-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxx> > Reviewed-by: Tudor Ambarus <tudor.ambarus@xxxxxxxxxxxxx> Applied to http://git.infradead.org/linux-mtd.git spi-nor/next. Boris ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/