[PATCH v4 0/2] mtd: spi-nand: Add support for randomizer feature
Cheng Ming Lin
linchengming884 at gmail.com
Mon Feb 2 18:13:56 PST 2026
From: Cheng Ming Lin <chengminglin at mxic.com.tw>
This patch series introduces randomizer support for SPI NAND devices.
Patch 1 adds the hook and initialization logic to the core framework.
Patch 2 implements the randomizer setting specifically for Macronix
chips (MX35LF/UF series) and allows control via device tree.
v4:
* Fix a build error in spinand_randomizer_init() where a value was
returned from a void function. (Reported by kernel test robot)
* Update the return type to int.
v3:
* Revert the device tree property to the vendor-specific
"mxic,randomizer-enable" to strictly follow vendor-specific bindings.
* Update the 'set_randomizer' callback signature to accept a boolean
'enable' argument, allowing the feature to be explicitly enabled or
disabled.
* Switch the implementation to use the standard SET_FEATURE command
to modify the Configuration Register (0x10), replacing the previous
special program command method.
v2:
* Create a global NAND DT property
Cheng Ming Lin (2):
mtd: spi-nand: Add support for randomizer
mtd: spi-nand: macronix: Enable randomizer support
drivers/mtd/nand/spi/core.c | 23 ++++++++++++++++
drivers/mtd/nand/spi/macronix.c | 47 ++++++++++++++++++++++++++-------
include/linux/mtd/spinand.h | 9 +++++++
3 files changed, 69 insertions(+), 10 deletions(-)
--
2.25.1
More information about the linux-mtd
mailing list