Skip to content

mtd: spi-nor: Clean params init

Tudor Ambarus linux-arm-kernel linux-mtd 8 versions – Applied

Status from this message: Applied to spi-nor/next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 posting 2/26 patches 31 repliesIn review
  2. v6 Latest14 patches 1 replyApplied
  3. v514 patches 9 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v4 posting 1/213 patches11 repliesSuperseded
v3 posting 2/26 patches0 repliesSuperseded
v3 posting 1/225 patches52 repliesApplied
v235 patches97 repliesSuperseded
v17 patches23 repliesSuperseded

Changes in v6 from the cover letter

patch 2/14: drop Fixes tag
patch 6/14: fix alignment of flash declarations in micron-st,
spansion, and sst drivers
patch 9/14:
- fix missing variable in if condition in spi_nor_init_params_deprecated()
- call spi_nor_no_sfdp_init_params() if(nor->info->no_sfdp_flags & SPI_NOR_SKIP_SFDP)
- remove redundant !(nor->info->no_sfdp_flags & SPI_NOR_SKIP_SFDP) check in spi_nor_init_params_deprecated()
- update description of spi_nor_init_params() with spi_nor_no_sfdp_init_params()
- add Pratyush's R-b tag
patches 11, 12, 13, 14: dump jedec_id, manufacturer partname and sfdp (including sfdp sha1sum)

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/14mtd: spi-nor: Fix mtd size for s3an flashesdrivers/mtd/spi-nor/xilinx.c+2 -10 replies
2/14mtd: spi-nor: core: Don't use mtd_info in the NOR's probe sequence of callsdrivers/mtd/spi-nor/core.c drivers/mtd/spi-nor/xilinx.c+4 -50 replies
3/14mtd: spi-nor: Introduce spi_nor_set_mtd_info()drivers/mtd/spi-nor/core.c drivers/mtd/spi-nor/core.h drivers/mtd/spi-nor/otp.c +1 more+35 -290 replies
4/14mtd: spi-nor: core: Call spi_nor_post_sfdp_fixups() only when SFDP is defineddrivers/mtd/spi-nor/core.c drivers/mtd/spi-nor/sfdp.c+24 -290 replies
5/14mtd: spi-nor: core: Introduce flash_info mfr_flagsdrivers/mtd/spi-nor/core.h drivers/mtd/spi-nor/sst.c+40 -110 replies
6/14mtd: spi-nor: Rework the flash_info flagsdrivers/mtd/spi-nor/atmel.c drivers/mtd/spi-nor/catalyst.c drivers/mtd/spi-nor/core.c +14 more+695 -5660 replies
7/14mtd: spi-nor: Introduce spi_nor_init_flags()drivers/mtd/spi-nor/core.c+51 -380 replies
8/14mtd: spi-nor: Introduce spi_nor_init_fixup_flags()drivers/mtd/spi-nor/core.c+20 -80 replies
9/14mtd: spi-nor: core: Init all flash parameters based on SFDP where possibledrivers/mtd/spi-nor/core.c+119 -780 replies
10/14mtd: spi-nor: core: Move spi_nor_set_addr_width() in spi_nor_setup()drivers/mtd/spi-nor/core.c+52 -500 replies
11/14mtd: spi-nor: winbond: w25q256jvm: Init flash based on SFDPdrivers/mtd/spi-nor/winbond.c+1 -20 replies
12/14mtd: spi-nor: spansion: s25fl256s0: Skip SFDP parsingdrivers/mtd/spi-nor/spansion.c+2 -10 replies
13/14mtd: spi-nor: gigadevice: gd25q256: Init flash based on SFDPdrivers/mtd/spi-nor/gigadevice.c+1 -10 replies
14/14mtd: spi-nor: issi: is25lp256: Init flash based on SFDPdrivers/mtd/spi-nor/issi.c+1 -10 replies

Reviews trailers per patch

10 of 14 patches have a Reviewed-by or Acked-by.

PatchPratyush YadavMichael Walle
1/14R-b
2/14R-b R-b
3/14R-b R-b
4/14R-b
5/14R-b R-b
6/14R-b
7/14R-b
8/14R-b
9/14R-b
10/14R-b R-b
11/14
12/14
13/14
14/14

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

Read the v6 thread

Cover letter [PATCH v6 00/14] mtd: spi-nor: Clean params init

Clean spi_nor_scan() and the flash parameters initialization code. Reworked how the flags are handled for the flash_info entries. Tested all the flashes from patch set.

Changes in v6:
patch 2/14: drop Fixes tag
patch 6/14: fix alignment of flash declarations in micron-st,
spansion, and sst drivers
patch 9/14:
- fix missing variable in if condition in spi_nor_init_params_deprecated()
- call spi_nor_no_sfdp_init_params() if(nor->info->no_sfdp_flags & SPI_NOR_SKIP_SFDP)
- remove redundant !(nor->info->no_sfdp_flags & SPI_NOR_SKIP_SFDP) check in spi_nor_init_params_deprecated()
- update description of spi_nor_init_params() with spi_nor_no_sfdp_init_params()
- add Pratyush's R-b tag
patches 11, 12, 13, 14: dump jedec_id, manufacturer partname and sfdp (including sfdp sha1sum)

Changes in v5:
- new patch 0001-mtd-spi-nor-Fix-mtd-size-for-s3an-flashes.patch
- update comment from
'[PATCH v4 02/13] mtd: spi-nor: Introduce spi_nor_set_mtd_info()', s/'No mtd_info fields are used up to this point.'/
'No mtd_info fields should be used up to this point.'
- collect R-b tags

Changes in v4:
- new patch:
"mtd: spi-nor: core: Don't use mtd_info in the NOR's probe sequence of calls"
- move spi_nor_post_sfdp_fixups() in drivers/mtd/spi-nor/sfdp.c
- Reworked flash_info flags. nor->info->flags are split in new flash_info
members: parse_sfdp, flags, no_sfdp_flags, fixup_flags and mfr_flags.
- remove roll-back mechanism for flashes that use PARSE_SFDP.
- dropped R-b tags where the new version of the patch modified how things are handled
- v4 changes log in each commit after ---

Changes in v3:
- move late_init() in struct spi_nor_fixups and update patches accordingly. R-b tags were dropped.
- new patch "mtd: spi-nor: sst: Get rid of SST_WRITE flash_info flag" moves manufacturer specific flag out of the core.
- update methods description to make it clear who sets when
- introduce flash_info flag masks to make it clear when one should be set.
- rework "parse SFDP first idea".

Tudor Ambarus (14):
mtd: spi-nor: Fix mtd size for s3an flashes
mtd: spi-nor: core: Don't use mtd_info in the NOR's probe sequence of
calls
mtd: spi-nor: Introduce spi_nor_set_mtd_info()
mtd: spi-nor: core: Call spi_nor_post_sfdp_fixups() only when SFDP is
defined
mtd: spi-nor: core: Introduce flash_info mfr_flags
mtd: spi-nor: Rework the flash_info flags
mtd: spi-nor: Introduce spi_nor_init_flags()
mtd: spi-nor: Introduce spi_nor_init_fixup_flags()
mtd: spi-nor: core: Init all flash parameters based on SFDP where
possible
mtd: spi-nor: core: Move spi_nor_set_addr_width() in spi_nor_setup()
mtd: spi-nor: winbond: w25q256jvm: Init flash based on SFDP
mtd: spi-nor: spansion: s25fl256s0: Skip SFDP parsing
mtd: spi-nor: gigadevice: gd25q256: Init flash based on SFDP
mtd: spi-nor: issi: is25lp256: Init flash based on SFDP

 drivers/mtd/spi-nor/atmel.c      |  71 +++--
 drivers/mtd/spi-nor/catalyst.c   |  15 +-
 drivers/mtd/spi-nor/core.c       | 503 +++++++++++++++++--------------
 drivers/mtd/spi-nor/core.h       | 206 ++++++++-----
 drivers/mtd/spi-nor/eon.c        |  33 +-
 drivers/mtd/spi-nor/esmt.c       |  15 +-
 drivers/mtd/spi-nor/everspin.c   |  12 +-
 drivers/mtd/spi-nor/fujitsu.c    |   3 +-
 drivers/mtd/spi-nor/gigadevice.c |  57 ++--
 drivers/mtd/spi-nor/intel.c      |  12 +-
 drivers/mtd/spi-nor/issi.c       |  60 ++--
 drivers/mtd/spi-nor/macronix.c   | 105 ++++---
 drivers/mtd/spi-nor/micron-st.c  | 210 +++++++------
 drivers/mtd/spi-nor/otp.c        |   2 +-
 drivers/mtd/spi-nor/sfdp.c       |  20 ++
 drivers/mtd/spi-nor/spansion.c   | 158 +++++-----
 drivers/mtd/spi-nor/sst.c        |  88 ++++--
 drivers/mtd/spi-nor/swp.c        |   2 +-
 drivers/mtd/spi-nor/winbond.c    | 161 +++++-----
 drivers/mtd/spi-nor/xilinx.c     |   2 +-
 drivers/mtd/spi-nor/xmc.c        |  10 +-
 21 files changed, 986 insertions(+), 759 deletions(-)
Signature · 6 lines
2.25.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/