The Memory Technology Device “MTD” subsystem updates are merged for the in-development Linux 6.18 kernel.
Notable with the MTD updates for the Linux 6.18 kernel is the introduction of the “ecc-realtek” driver for supporting the hardware ECC error correction engine from Realtek. This ECC hardware engine is found on Realtek’s RTL93xx switch SoCs.
The patch message describes the Realtek ECC engine’s capabilities as:
“The Realtek RTL93xx switch SoC series has a built in ECC controller that can provide BCH6 or BCH12 over 512 data and 6 tag bytes. It generates 10 (BCH6) or 20 (BCH12) bytes of parity.
This engine will most likely work in conjunction with the Realtek spi-mem based NAND controller but can work on its own. Therefore the initial implementation will be of type external.
Remark! The engine can support any data blocks that are multiples of 512 bytes. For now limit it to data+oob layouts that have been analyzed from existing devices. This way it keeps compatibility and pre-existing vendor data can be read.”
The MTD merge for Linux 6.18 also adds MTD core support for exposing the out-of-band layout via DebugFS, adding support for the Loongson-2K1000 and Loongson-2K0500 NAND controllers, and support for the FudanMicro FM25S01A. The Gigadevice vendor driver also now supports handling continuous reads.