[0/6] mtd: spi-nor: move manuf out of the core - batch 2
mbox series

Message ID 20190731091145.27374-1-tudor.ambarus@microchip.com
Headers show
  • mtd: spi-nor: move manuf out of the core - batch 2
Related show


Ambarus Tudor July 31, 2019, 9:12 a.m. UTC
From: Tudor Ambarus <tudor.ambarus@microchip.com>

Add post_sfdp() hook to tweak flash config.

In the quest of moving the manufacturer code out of the spi-nor core,
we want to impose the following sequence of calls:

    1/ spi-nor core legacy flash parameters init:

    2/ MFR-based manufacturer flash parameters init:

    3/ specific flash_info tweeks done when decisions can not be done just on

    4/ SFDP tables flash parameters init - SFDP knows better:

    5/ post SFDP tables flash parameters updates - in case manufacturers get
       the serial flash tables wrong or incomplete.
       The later can be extended to nor->manufacturer->fixups->post_sfdp() if

This series opens doors for 5/.

Tested on sst26vf064b with atmel-quadspi SPIMEM driver.

Depends on:

Boris Brezillon (4):
  mtd: spi-nor: Add post_sfdp() hook to tweak flash config
  mtd: spi-nor: Add spansion_post_sfdp_fixups()
  mtd: spi-nor: Add a ->convert_addr() method
  mtd: spi-nor: Add the SPI_NOR_XSR_RDY flag

Tudor Ambarus (2):
  mtd: spi_nor: Add nor->setup() method
  mtd: spi-nor: Add s3an_post_sfdp_fixups()

 drivers/mtd/spi-nor/spi-nor.c | 192 +++++++++++++++++-----------------
 include/linux/mtd/spi-nor.h   | 232 +++++++++++++++++++++++++++---------------
 2 files changed, 245 insertions(+), 179 deletions(-)