]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mtd: nand: relax ECC parameter validation check
authorAryan Srivastava <aryan.srivastava@alliedtelesis.co.nz>
Fri, 24 Oct 2025 00:19:42 +0000 (13:19 +1300)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 28 Oct 2025 16:04:34 +0000 (17:04 +0100)
commit050553c683f21eebd7d1020df9b2ec852e2a9e4e
tree1965562dbda07d1fb97cb4eda1d72ddbce1f225b
parentfbd72cb463fdea3a0c900dd5d6e813cdebc3a73c
mtd: nand: relax ECC parameter validation check

Due to the custom handling and layouts of certain nand controllers this
validity check will always fail for certain layouts. The check
inherently depends on even chunk sizing and this is not always the
case.

Modify the check to only print a warning, instead of failing to
init the attached NAND. This allows various 8 bit and 12 ECC strength
layouts to be used.

Fixes: 68c18dae6888 ("mtd: rawnand: marvell: add missing layouts")
Signed-off-by: Aryan Srivastava <aryan.srivastava@alliedtelesis.co.nz>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/nand_base.c