Skip to content

mtd: spi-nor: move manuf out of the core - batch 2

[email protected] linux-mtd lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6mtd: spi-nor: Add post_sfdp() hook to tweak flash configdrivers/mtd/spi-nor/spi-nor.c+16 -00 replies
2/6mtd: spi-nor: Add spansion_post_sfdp_fixups()drivers/mtd/spi-nor/spi-nor.c+30 -140 replies
3/6mtd: spi-nor: Add a ->convert_addr() methoddrivers/mtd/spi-nor/spi-nor.c include/linux/mtd/spi-nor.h+23 -160 replies
4/6mtd: spi_nor: Add nor->setup() methoddrivers/mtd/spi-nor/spi-nor.c include/linux/mtd/spi-nor.h+142 -1382 replies
5/6mtd: spi-nor: Add s3an_post_sfdp_fixups()drivers/mtd/spi-nor/spi-nor.c+25 -107 replies
6/6mtd: spi-nor: Add the SPI_NOR_XSR_RDY flagdrivers/mtd/spi-nor/spi-nor.c+9 -12 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchBoris Brezillon
1/6
2/6
3/6
4/6R-b
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] mtd: spi-nor: move manuf out of the core - batch 2

From: Tudor Ambarus <[email protected]>

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:
spi_nor_default_init_params()

2/ MFR-based manufacturer flash parameters init:
nor->manufacturer->fixups->default_init()

3/ specific flash_info tweeks done when decisions can not be done just on
MFR:
nor->info->fixups->default_init()

4/ SFDP tables flash parameters init - SFDP knows better:
spi_nor_sfdp_init_params()

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

This series opens doors for 5/.

Tested on sst26vf064b with atmel-quadspi SPIMEM driver.

Depends on:
https://patchwork.ozlabs.org/project/linux-mtd/list/?series=122420

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(-)
Signature · 1 line
2.9.5