Skip to content

mtd: spi-nor: Parse BFPT to determine the 4-Byte Address Mode

Tudor Ambarus linux-mtd lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 10 repliesIn review
  2. v24 patches 9 repliesSuperseded
  3. v15 patches 1 replySuperseded

Changes in v3 from the cover letter

- Move the newly introduced BFPT definitions in sfdp.h, as they may be used by manufacturer drivers to handle flash ID collisions.
- Drop "mtd: spi-nor: sfdp: Keep SFDP definitions private" patch for the same reason as above
- Collect R-b tags

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mtd: spi-nor: Parse BFPT to determine the 4-Byte Address Mode methodsdrivers/mtd/spi-nor/core.c drivers/mtd/spi-nor/core.h drivers/mtd/spi-nor/micron-st.c +3 more+144 -946 replies
2/3mtd: spi-nor: Update name and description of the set_4byte_addr_mode BFPT methodsdrivers/mtd/spi-nor/core.c drivers/mtd/spi-nor/macronix.c drivers/mtd/spi-nor/micron-st.c +3 more+30 -191 reply
3/3mtd: spi-nor: Favor the BFPT-parsed set_4byte_addr_mode methoddrivers/mtd/spi-nor/core.c drivers/mtd/spi-nor/macronix.c drivers/mtd/spi-nor/micron-st.c+20 -63 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchPratyush YadavMichael Walle
1/3R-b
2/3R-b R-b
3/3R-b

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

Read the v3 thread

Cover letter [PATCH v3 0/3] mtd: spi-nor: Parse BFPT to determine the 4-Byte Address Mode

Depends on:
https://lore.kernel.org/lkml/[email protected]/

Get the 4-Byte Address mode method from BFPT and favor it in the detriment of the "default" set_4byte_addr_mode method or the methods set by vendors. This may introduce some regressions if flashes have wrong BFPT data. The fix is to introduce post_bfpt() hooks and fix where needed. We should let the core/sfdp do the params initialization, and do vendor specific updates just where needed.

v3:
- Move the newly introduced BFPT definitions in sfdp.h, as they may be used by manufacturer drivers to handle flash ID collisions.
- Drop "mtd: spi-nor: sfdp: Keep SFDP definitions private" patch for the same reason as above
- Collect R-b tags

v2: Drop quad enable patch

Tudor Ambarus (3):
mtd: spi-nor: Parse BFPT to determine the 4-Byte Address Mode methods
mtd: spi-nor: Update name and description of the set_4byte_addr_mode
BFPT methods
mtd: spi-nor: Favor the BFPT-parsed set_4byte_addr_mode method

 drivers/mtd/spi-nor/core.c      |  70 ++------------------
 drivers/mtd/spi-nor/core.h      |   1 -
 drivers/mtd/spi-nor/macronix.c  |   9 ++-
 drivers/mtd/spi-nor/micron-st.c |  32 ++-------
 drivers/mtd/spi-nor/sfdp.c      | 113 ++++++++++++++++++++++++++++++++
 drivers/mtd/spi-nor/sfdp.h      |  30 +++++++++
 drivers/mtd/spi-nor/winbond.c   |  18 +++--
 7 files changed, 174 insertions(+), 99 deletions(-)
Signature · 1 line
2.25.1