[PATCH v1 0/3] Add 1S-xD-xD DTR support for SPI NOR

Changhuang Liang posted 3 patches 1 week, 6 days ago
drivers/mtd/spi-nor/core.c     | 23 ++++++++++-------------
drivers/mtd/spi-nor/debugfs.c  |  8 ++++----
drivers/mtd/spi-nor/macronix.c | 28 +++++++++++++++++++++++++++-
3 files changed, 41 insertions(+), 18 deletions(-)
[PATCH v1 0/3] Add 1S-xD-xD DTR support for SPI NOR
Posted by Changhuang Liang 1 week, 6 days ago
SPI NOR already defines the 1S-xD-xD DTR protocols (1S-1D-1D, 1S-2D-2D,
1S-4D-4D, 1S-8D-8D), but spi_nor_spimem_setup_op() treats every DTR
protocol like 8D-8D-8D: it marks the command phase as DTR and turns
the opcode into a 2-byte opcode + extension. No flash declares these
protocols today, so the path has never been used.

This series makes the 1S-xD-xD protocols usable and enables the first
user(MX66L1G45G).

[1]: https://lore.kernel.org/all/20261028121100.79667-1-changhuang.liang@starfivetech.com/

This is a split version of the previously sent series [1]. The SPI controller
related patches in the original series were applied, so the remaining
MTD-related patches were separated out into a new series.

Changes since previous submission:
- Move the 1_4_4_DTR read command support into the .post_bfpt hook.
- Drop the now-unnecessary SPI_NOR_4B_OPCODES fixup flag.

Changhuang Liang (3):
  mtd: spi-nor: Support mixed 1S-xD-xD DTR protocols in
    spi_nor_spimem_setup_op()
  mtd: spi-nor: debugfs: Correct DTR protocol names for 1S-xD-xD modes
  mtd: spi-nor: macronix: Add 1-4-4 DTR read support for MX66L1G45G

 drivers/mtd/spi-nor/core.c     | 23 ++++++++++-------------
 drivers/mtd/spi-nor/debugfs.c  |  8 ++++----
 drivers/mtd/spi-nor/macronix.c | 28 +++++++++++++++++++++++++++-
 3 files changed, 41 insertions(+), 18 deletions(-)

--
2.25.1
Re: [PATCH v1 0/3] Add 1S-xD-xD DTR support for SPI NOR
Posted by Michael Walle 3 days, 22 hours ago
On Wed, 11 Nov 2026 02:12:37 -0800, Changhuang Liang wrote:
> SPI NOR already defines the 1S-xD-xD DTR protocols (1S-1D-1D, 1S-2D-2D,
> 1S-4D-4D, 1S-8D-8D), but spi_nor_spimem_setup_op() treats every DTR
> protocol like 8D-8D-8D: it marks the command phase as DTR and turns
> the opcode into a 2-byte opcode + extension. No flash declares these
> protocols today, so the path has never been used.
> 
> This series makes the 1S-xD-xD protocols usable and enables the first
> user(MX66L1G45G).
> 
> [...]

Applied, thanks!

[1/3] mtd: spi-nor: Support mixed 1S-xD-xD DTR protocols in spi_nor_spimem_setup_op()
      commit: 20b85b6067e976c4a820eb0b099edc4735feed6c
[2/3] mtd: spi-nor: debugfs: Correct DTR protocol names for 1S-xD-xD modes
      commit: ed4a5fefe5134816d3827b3a44572b95af042863
[3/3] mtd: spi-nor: macronix: Add 1-4-4 DTR read support for MX66L1G45G
      commit: 7a7f426ca93dbbcb0a2b4f52fe48226fc2be71ca

Best regards,
-- 
Michael Walle <mwalle@kernel.org>