[GIT PULL] mtd: Changes for 6.18

Miquel Raynal miquel.raynal at bootlin.com
Fri Oct 3 08:30:57 PDT 2025


Hello,

This is the MTD PR for 6.18.

Thanks,
Miquèl

The following changes since commit 8f5ae30d69d7543eee0d70083daf4de8fe15d585:

  Linux 6.17-rc1 (2025-08-10 19:41:16 +0300)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git tags/mtd/for-6.18

for you to fetch changes up to efebdf4b722143dc5073cee21276baf1673d451e:

  Merge tag 'nand/for-6.18' into mtd/next (2025-10-03 17:23:18 +0200)

----------------------------------------------------------------
MTD core:
- Bad blocks increment is skipped if the block is already known
  bad (improves user statistics relevance).
- Expose the OOB layout via debugfs.

* Raw NAND:
- Add support for Loongson-2K1000 and Loongson-2K0500 NAND controllers,
  including extra features, such as chip select and 6-byte NAND ID
  reading support.
- Drop the s3c2410 driver.

* SPI NAND:
- Important SPI NAND continuous read improvements and fixes.
- Add support for FudanMicro FM25S01A.
- Add support for continuous reads in Gigadevice vendor driver.

* ECC:
- Add support for the Realtek ECC engine.

* SPI NOR:

- Some flashes can't perform reads or writes with start or end being an
  odd number in Octal DTR mode. File systems like UBIFS can request such
  reads or writes, causing the transaction to error out. Pad the read or
  write transactions with extra bytes to avoid this problem.

This PR comes with the usual amount of various miscellaneous fixes.

----------------------------------------------------------------
Alexander Dahl (1):
      mtd: rawnand: atmel: Fix pulse read timing for certain flash chips

Arnd Bergmann (1):
      mtd: map: add back asm/barrier.h inclusion

Binbin Zhou (6):
      mtd: rawnand: loongson1: Rename the prefix from ls1x to loongson
      mtd: rawnand: loongson: Add nand chip select support
      dt-bindings: mtd: loongson,ls1b-nand-controller: Document the Loongson-2K0500 NAND controller
      mtd: rawnand: loongson: Add Loongson-2K0500 NAND controller support
      dt-bindings: mtd: loongson,ls1b-nand-controller: Document the Loongson-2K1000 NAND controller
      mtd: rawnand: loongson: Add Loongson-2K1000 NAND controller support

Colin Ian King (2):
      mtd: jedec_probe: Remove space before newline
      mtd: lpddr: Remove space before newline

Erick Karanja (1):
      mtd: rawnand: atmel: Fix error handling path in atmel_nand_controller_add_nands

Gabor Juhos (3):
      mtd: nand: qpic-common: remove a bunch of unused defines
      mtd: nand: qpic_common: use {cmd,data}_sgl_nitems for sg_init_table()
      mtd: core: expose ooblayout information via debugfs

Gopi Krishna Menon (1):
      mtd: cfi: use struct_size() helper for cfiq allocation

Johan Hovold (9):
      mtd: rawnand: omap2: fix device leak on probe failure
      mtd: hyperbus: hbmc-am654: drop unused module alias
      mtd: onenand: omap2: drop unused module alias
      mtd: rawnand: atmel: drop unused module alias
      mtd: rawnand: omap2: drop unused module alias
      mtd: rawnand: pl353: drop unused module alias
      mtd: rawnand: rockchip: drop unused module alias
      mtd: rawnand: stm32_fmc2: drop unused module alias
      mtd: rawnand: sunxi: drop unused module alias

Keguang Zhang (1):
      mtd: rawnand: loongson: Add 6-byte NAND ID reading support

Krzysztof Kozlowski (3):
      mtd: rawnand: s3c2410: Drop S3C2410 support
      dt-bindings: mtd samsung-s3c2410: Drop S3C2410 support
      mtd: rawnand: s3c2410: Drop driver (no actual S3C64xx user)

Linus Walleij (1):
      mtd: rawnand: fsmc: Default to autodetect buswidth

Maarten Zanders (1):
      mtd: nand: raw: gpmi: fix clocks when CONFIG_PM=N

Markus Stockhausen (3):
      mtd: nand: move nand_check_erased_ecc_chunk() to nand/core
      dt-bindings: mtd: Add realtek,rtl9301-ecc
      mtd: nand: realtek-ecc: Add Realtek external ECC engine support

Mikhail Kshevetskiy (3):
      mtd: spinand: fix direct mapping creation sizes
      mtd: spinand: try a regular dirmap if creating a dirmap for continuous reading fails
      mtd: spinand: repeat reading in regular mode if continuous reading fails

Miquel Raynal (3):
      mtd: nand: ecc-mxic: Lower log level during init
      Merge tag 'spi-nor/for-6.18' into mtd/next
      Merge tag 'nand/for-6.18' into mtd/next

Pratyush Yadav (2):
      mtd: spi-nor: core: avoid odd length/address reads on 8D-8D-8D mode
      mtd: spi-nor: core: avoid odd length/address writes in 8D-8D-8D mode

Qianfeng Rong (2):
      mtd: rawnand: pl353: Use int type to store negative error codes
      mtd: use vmalloc_array and vcalloc to simplify code

Rahul Kumar (1):
      mtd: jedec_probe: use struct_size() helper for cfiq allocation

Teng Wu (1):
      mtd: spinand: gigadevice: Add continuous read support

Tianling Shen (1):
      mtd: spinand: add support for FudanMicro FM25S01A

Wang Zhaolong (1):
      mtd: core: skip badblocks increment for blocks already known bad

Xichao Zhao (1):
      mtd: nand: ecc: fix "writen"->"written"

 .../mtd/loongson,ls1b-nand-controller.yaml         |   56 +-
 .../bindings/mtd/realtek,rtl9301-ecc.yaml          |   41 +
 .../devicetree/bindings/mtd/samsung-s3c2410.txt    |   56 -
 MAINTAINERS                                        |    2 +-
 drivers/mtd/chips/cfi_probe.c                      |    2 +-
 drivers/mtd/chips/jedec_probe.c                    |    4 +-
 drivers/mtd/ftl.c                                  |    2 +-
 drivers/mtd/hyperbus/hbmc-am654.c                  |    1 -
 drivers/mtd/lpddr/lpddr_cmds.c                     |   10 +-
 drivers/mtd/lpddr/qinfo_probe.c                    |    4 +-
 drivers/mtd/mtdcore.c                              |   61 +-
 drivers/mtd/mtdoops.c                              |    5 +-
 drivers/mtd/mtdswap.c                              |    4 +-
 drivers/mtd/nand/Kconfig                           |    8 +
 drivers/mtd/nand/Makefile                          |    1 +
 drivers/mtd/nand/core.c                            |  131 +++
 drivers/mtd/nand/ecc-mxic.c                        |   14 +-
 drivers/mtd/nand/ecc-realtek.c                     |  464 ++++++++
 drivers/mtd/nand/ecc.c                             |    2 +-
 drivers/mtd/nand/onenand/onenand_omap2.c           |    1 -
 drivers/mtd/nand/qpic_common.c                     |    6 +-
 drivers/mtd/nand/raw/Kconfig                       |   34 +-
 drivers/mtd/nand/raw/Makefile                      |    3 +-
 drivers/mtd/nand/raw/atmel/nand-controller.c       |   17 +-
 drivers/mtd/nand/raw/atmel/pmecc.c                 |    1 -
 drivers/mtd/nand/raw/fsmc_nand.c                   |    6 +-
 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c         |   14 +-
 drivers/mtd/nand/raw/loongson-nand-controller.c    | 1024 ++++++++++++++++
 drivers/mtd/nand/raw/loongson1-nand-controller.c   |  836 -------------
 drivers/mtd/nand/raw/nand_base.c                   |  131 ---
 drivers/mtd/nand/raw/nandsim.c                     |    7 +-
 drivers/mtd/nand/raw/omap2.c                       |   27 +-
 drivers/mtd/nand/raw/pl35x-nand-controller.c       |    3 +-
 drivers/mtd/nand/raw/rockchip-nand-controller.c    |    1 -
 drivers/mtd/nand/raw/s3c2410.c                     | 1230 --------------------
 drivers/mtd/nand/raw/stm32_fmc2_nand.c             |    1 -
 drivers/mtd/nand/raw/sunxi_nand.c                  |    1 -
 drivers/mtd/nand/spi/Makefile                      |    2 +-
 drivers/mtd/nand/spi/core.c                        |   75 +-
 drivers/mtd/nand/spi/fmsh.c                        |   74 ++
 drivers/mtd/nand/spi/gigadevice.c                  |  107 +-
 drivers/mtd/rfd_ftl.c                              |    4 +-
 drivers/mtd/spi-nor/core.c                         |  145 ++-
 include/linux/mtd/map.h                            |    1 +
 include/linux/mtd/nand-qpic-common.h               |   14 -
 include/linux/mtd/nand.h                           |    5 +
 include/linux/mtd/rawnand.h                        |    5 -
 include/linux/mtd/spinand.h                        |    1 +
 include/linux/platform_data/mtd-nand-s3c2410.h     |   70 --
 49 files changed, 2257 insertions(+), 2457 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/mtd/realtek,rtl9301-ecc.yaml
 delete mode 100644 Documentation/devicetree/bindings/mtd/samsung-s3c2410.txt
 create mode 100644 drivers/mtd/nand/ecc-realtek.c
 create mode 100644 drivers/mtd/nand/raw/loongson-nand-controller.c
 delete mode 100644 drivers/mtd/nand/raw/loongson1-nand-controller.c
 delete mode 100644 drivers/mtd/nand/raw/s3c2410.c
 create mode 100644 drivers/mtd/nand/spi/fmsh.c
 delete mode 100644 include/linux/platform_data/mtd-nand-s3c2410.h



More information about the linux-mtd mailing list