mtd: spi-nor: move manuf out of the core - batch 2
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 11 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | mtd: spi-nor: Add post_sfdp() hook to tweak flash configdrivers/ | +16 | 0 replies | |
| 2/6 | mtd: spi-nor: Add spansion_post_sfdp_fixups()drivers/ | +30 | 0 replies | |
| 3/6 | mtd: spi-nor: Add a ->convert_addr() methoddrivers/ include/ | +23 | 0 replies | |
| 4/6 | mtd: spi_nor: Add nor->setup() methoddrivers/ include/ | +142 | 2 replies | |
| 5/6 | mtd: spi-nor: Add s3an_post_sfdp_fixups()drivers/ | +25 | 7 replies | |
| 6/6 | mtd: spi-nor: Add the SPI_NOR_XSR_RDY flagdrivers/ | +9 | 2 replies |
Reviews trailers per patch
1 of 6 patches has a Reviewed-by or Acked-by.
| Patch | Boris Brezillon |
|---|---|
| 1/6 | |
| 2/6 | |
| 3/6 | |
| 4/6 | R-b |
| 5/6 | |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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