mtd: rawnand: gpmi: Add strict ecc strength check
authorHan Xu <han.xu@nxp.com>
Tue, 12 Apr 2022 02:52:43 +0000 (21:52 -0500)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 21 Apr 2022 07:34:04 +0000 (09:34 +0200)
commitd10af38a2e3b60dc46ca9727dfc24d0ea57136e3
tree3f11bb1e78b90d3ee7fe558a545a710fdc8e322b
parent15616c7cfb968d72e614b1ba669467dc373b2582
mtd: rawnand: gpmi: Add strict ecc strength check

Add nand_ecc_is_strong_enough() check in gpmi_check_ecc() function to
make sure ecc strength can meet chip requirement.

Signed-off-by: Han Xu <han.xu@nxp.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220412025246.24269-3-han.xu@nxp.com
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c