]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:02:42 +0000 (14:02 +0100)
commit34de3867bdfdf5bee1e9b27efa91a0aab2e5d11e
treea43fe7957e0099a9d518bafee19270cc490c361b
parentaf76d442a543f596fd78a13f7369a20831fa1c76
mtd: nand: relax ECC parameter validation check

[ Upstream commit 050553c683f21eebd7d1020df9b2ec852e2a9e4e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mtd/nand/raw/nand_base.c