]> git.hungrycats.org Git - linux/commit
mtd: spinand: Add support for randomizer
authorCheng Ming Lin <chengminglin@mxic.com.tw>
Tue, 5 May 2026 01:34:52 +0000 (09:34 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 27 May 2026 09:07:06 +0000 (11:07 +0200)
commit54e1bc80af0c993afc6a2283722f8d4535b10d40
tree686f2e5c5bd1fbd90b3446e033f6832a353d4705
parentcf496ebf1380bde700c5d1790c31919eea2f4851
mtd: spinand: Add support for randomizer

This patch adds support for the randomizer feature.

It introduces a 'set_randomizer' callback in 'struct spinand_info' and
'struct spinand_device'.

If a driver implements this callback, the core will invoke it during
device initialization (spinand_init) to enable or disable the randomizer
feature based on the device tree configuration.

Signed-off-by: Cheng Ming Lin <chengminglin@mxic.com.tw>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/spi/core.c
include/linux/mtd/spinand.h