]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mtd: nand: move nand_check_erased_ecc_chunk() to nand/core
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Wed, 10 Sep 2025 18:32:58 +0000 (14:32 -0400)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 18 Sep 2025 08:32:00 +0000 (10:32 +0200)
commit6b88293aae7fb78872e5cc1ec36e2f750ae12e38
treec1074ccbc0f16a9efd6ff96b8213f3fc6e72de29
parent01adc8207cf3c42c5cf389be7578fd726ef26fe1
mtd: nand: move nand_check_erased_ecc_chunk() to nand/core

The check function for bitflips in erased blocks will be needed
by the Realtek ECC engine driver (which is currently under
development). Right now it is located in raw/nand_base.c.
While this is sufficient for the current usecases, there is
no real dependency for an ECC engine on the raw nand library.

Move the function over to a more generic place in core library.

Suggested-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/core.c
drivers/mtd/nand/raw/nand_base.c
include/linux/mtd/nand.h
include/linux/mtd/rawnand.h