Skip to content

Add octal DTR support for Macronix flash

Jaime Liao linux-mtd linux-spi 8 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest9 patches 10 repliesIn review
  2. v77 patches 19 repliesSuperseded
  3. v67 patches 7 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v56 patches19 repliesSuperseded
v46 patches21 repliesSuperseded
v35 patches15 repliesSuperseded
v22 patches13 repliesSuperseded
v12 patches13 repliesSuperseded

Changes in v8 from the cover letter

Supplement missing S-o-b
Remove function spi_nor_is_octal_dtr_swab16
Split IDs by MX25 & MX66
Add dump of capability in debugfs
Add dump of params in debugfs
Add dump of reult for mtd-utils tests
Add SNOR_ID(0xC2) in last of Macronix ID table

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9mtd: spi-nor: add Octal DTR support for Macronix flashdrivers/mtd/spi-nor/macronix.c+100 -00 replies
2/9spi: spi-mem: Allow specifying the byte order in Octal DTR modedrivers/spi/spi-mem.c include/linux/spi/spi-mem.h+10 -02 replies
3/9mtd: spi-nor: core: Allow specifying the byte order in Octal DTR modedrivers/mtd/spi-nor/core.c drivers/mtd/spi-nor/core.h+6 -01 reply
4/9mtd: spi-nor: sfdp: Get the 8D-8D-8D byte order from BFPTdrivers/mtd/spi-nor/sfdp.c drivers/mtd/spi-nor/sfdp.h+5 -00 replies
5/9spi: mxic: Add support for swapping bytedrivers/spi/spi-mxic.c+13 -42 replies
6/9mtd: spi-nor: add support for Macronix Octal flash MX25 series with RWW featuredrivers/mtd/spi-nor/macronix.c+40 -01 reply
7/9mtd: spi-nor: add support for Macronix Octal flash MX66 series with RWW featuredrivers/mtd/spi-nor/macronix.c+12 -00 replies
8/9mtd: spi-nor: add support for Macronix Octal flash MX25 seriesdrivers/mtd/spi-nor/macronix.c+10 -00 replies
9/9mtd: spi-nor: add support for Macronix Octal flash MX66 seriesdrivers/mtd/spi-nor/macronix.c+7 -01 reply

Reviews trailers per patch

4 of 9 patches have a Reviewed-by or Acked-by.

PatchMichael WalleMark Brown
1/9A-b
2/9R-b A-b
3/9
4/9R-b
5/9A-b
6/9
7/9
8/9
9/9

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

Read the v8 thread

Cover letter [PATCH v8 0/9] Add octal DTR support for Macronix flash

From: JaimeLiao <[email protected]>

Add method for Macronix Octal DTR Eable/Disable.
Merge Tudor's patch "Allow specifying the byte order in DTR mode" Add support for Macronix flash

v8:
Supplement missing S-o-b
Remove function spi_nor_is_octal_dtr_swab16
Split IDs by MX25 & MX66
Add dump of capability in debugfs
Add dump of params in debugfs
Add dump of reult for mtd-utils tests
Add SNOR_ID(0xC2) in last of Macronix ID table

v7:
Add dtr_swab16 judgement to enable/disable Macronix xSPI host controller swap byte feature.

v6:
Add byte swap support for spi-mxic.c
Remove flash name in ID table.

v5:
Remove manufacturer read id function.
For increased readability, separate Flash IDs based on whether it supports RWW feature.

v4:
Add patch for adding manufacturer read id function. remove patch "hook manufacturer by checking first byte id"

v3:
Add patch for hook manufacturer by comparing ID 1st byte. Add patches for specifying the byte order in DTR mode by merging Tudor's patch.

v2:
Following exsting rules to re-create Macronix specify Octal DTR method. change signature to [email protected]
Clear sector size information in flash INFO.

JaimeLiao (9):
mtd: spi-nor: add Octal DTR support for Macronix flash
spi: spi-mem: Allow specifying the byte order in Octal DTR mode
mtd: spi-nor: core: Allow specifying the byte order in Octal DTR mode
mtd: spi-nor: sfdp: Get the 8D-8D-8D byte order from BFPT
spi: mxic: Add support for swapping byte
mtd: spi-nor: add support for Macronix Octal flash MX25 series with
RWW feature
mtd: spi-nor: add support for Macronix Octal flash MX66 series with
RWW feature
mtd: spi-nor: add support for Macronix Octal flash MX25 series
mtd: spi-nor: add support for Macronix Octal flash MX66 series

 drivers/mtd/spi-nor/core.c     |   5 +
 drivers/mtd/spi-nor/core.h     |   1 +
 drivers/mtd/spi-nor/macronix.c | 169 +++++++++++++++++++++++++++++++++
 drivers/mtd/spi-nor/sfdp.c     |   4 +
 drivers/mtd/spi-nor/sfdp.h     |   1 +
 drivers/spi/spi-mem.c          |   4 +
 drivers/spi/spi-mxic.c         |  17 +++-
 include/linux/spi/spi-mem.h    |   6 ++
 8 files changed, 203 insertions(+), 4 deletions(-)
Signature · 1 line
2.25.1