drivers/mtd/devices

Miscellaneous MTD Memory Devices (SPI SRAM/EERAM, DiskOnChip, RAM-backed Flash Emulators)

A grab-bag of small memory-technology drivers covering Microchip SPI SRAM and EERAM chips, M-Systems DiskOnChip G3 NAND modules, ST serial flash controllers, the DEC MS02-NV NVRAM card, and RAM-backed pseudo-devices (mtdram, phram, slram, block2mtd) that present ordinary memory as flash. Hardware spans 1990s embedded NVRAM through to small SPI memories still shipping today.

keep-annotate conf=0.82 deploy=low replacement=none subsystem=mtd category=storage-flash
82%

recommendation

Worth keeping but flagging as a mixed bucket. The directory is still actively maintained upstream, with a 2026 DiskOnChip G3 bugfix and a 2025 power-management cleanup to the ST SPI flash driver landing in mtd/next, and parts like the Microchip 23K256 SPI SRAM and serial EERAM line remain in production for automotive use. Several entries inside (block2mtd, mtdram, phram, slram, ms02-nv, docg3) are legacy or pseudo-device helpers with little present-day deployment, so it deserves a note that it is a low-density grab-bag rather than one coherent driver family.

repository signals

22 files
12,162 source lines
84 commits, 5y
+1,761 / −1,027 lines added / removed, 5y
40 authors, 5y
monthly commits · 2021-04-21 → 2026-04-21 · 84 total · active in 41/61 months
2021 2022 2023 2024 2025 2026 2021-04: 1 commit · +1 −0 2021-05: 1 commit · +0 −1 2021-06: 2 commits · +382 −2 2021-07: 1 commit · +1 −0 2021-08: 0 commits · +0 −0 2021-09: 0 commits · +0 −0 2021-10: 2 commits · +22 −9 2021-11: 5 commits · +22 −8 2021-12: 0 commits · +0 −0 2022-01: 3 commits · +14 −18 2022-02: 3 commits · +25 −1 2022-03: 0 commits · +0 −0 2022-04: 1 commit · +63 −4 2022-05: 2 commits · +39 −6 2022-06: 9 commits · +35 −22 2022-07: 1 commit · +6 −1 2022-08: 2 commits · +4 −4 2022-09: 0 commits · +0 −0 2022-10: 1 commit · +0 −691 2022-11: 0 commits · +0 −0 2022-12: 1 commit · +0 −9 2023-01: 0 commits · +0 −0 2023-02: 0 commits · +0 −0 2023-03: 2 commits · +3 −3 2023-04: 1 commit · +6 −22 2023-05: 4 commits · +46 −30 2023-06: 3 commits · +6 −6 2023-07: 3 commits · +5 −19 2023-08: 1 commit · +3 −12 2023-09: 1 commit · +29 −22 2023-10: 6 commits · +12 −23 2023-11: 0 commits · +0 −0 2023-12: 0 commits · +0 −0 2024-01: 1 commit · +21 −25 2024-02: 1 commit · +1 −1 2024-03: 1 commit · +1 −1 2024-04: 2 commits · +4 −3 2024-05: 0 commits · +0 −0 2024-06: 0 commits · +0 −0 2024-07: 1 commit · +2 −0 2024-08: 1 commit · +3 −0 2024-09: 0 commits · +0 −0 2024-10: 2 commits · +10 −10 2024-11: 1 commit · +5 −0 2024-12: 2 commits · +25 −3 2025-01: 1 commit · +2 −4 2025-02: 0 commits · +0 −0 2025-03: 1 commit · +5 −4 2025-04: 1 commit · +1 −1 2025-05: 0 commits · +0 −0 2025-06: 6 commits · +848 −6 2025-07: 1 commit · +2 −2 2025-08: 0 commits · +0 −0 2025-09: 0 commits · +0 −0 2025-10: 1 commit · +62 −12 2025-11: 1 commit · +1 −1 2025-12: 0 commits · +0 −0 2026-01: 1 commit · +6 −3 2026-02: 3 commits · +38 −38 2026-03: 0 commits · +0 −0 2026-04: 0 commits · +0 −0

sources

  1. kernel.googlesource.com

    The directory still receives upstream fixes in 2026; mtd/next contains a 2026 docg3 bugfix touching drivers/mtd/devices/docg3.c.

  2. lists.openwall.net

    A 2025 patch updated drivers/mtd/devices/st_spi_fsm.c for modern PM macros, showing current maintenance rather than abandonment.

  3. microchip.com

    Microchip lists the 23K256 SPI SRAM as 'In Production', indicating at least part of this directory still supports hardware sold new in 2025.

  4. microchip.com

    Microchip still markets serial EERAM for automotive use, consistent with ongoing niche deployments relevant to mchp48l640-class support.

codex reasoning notes (technical)

Not a removal candidate: the directory is active upstream, with recent 2025-2026 maintenance found via web search on public kernel archives/mtd trees (kernel.googlesource mtd/next, openwall patch mirror). Directory contents are heterogeneous: some entries are clearly legacy or pseudo-device helpers (block2mtd, mtdram, phram, slram, ms02-nv, docg3), but others map to still-sold niche memory parts such as Microchip SPI SRAM/EERAM. Because current attention exists and at least some supported parts remain in production, deprecate/remove is too aggressive. Keep, but annotate as a mixed legacy/niche bucket with low present-day deployment density and no single replacement driver.