]> git.baikalelectronics.ru Git - uboot.git/commit
mtd: rawnand: fsl_elbc: Use ECC configuration from device tree
authorPali Rohár <pali@kernel.org>
Mon, 4 Apr 2022 16:17:20 +0000 (18:17 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 26 Apr 2022 11:48:39 +0000 (17:18 +0530)
commit0fe929c4f70bf9343cef08b8452d494f9117fd3f
treefd0d0eb896c399d9d7be5dded8b8ecc28ffa4916
parent15a51fa73db1aca17ecde9ae1ed6ec94f9d49350
mtd: rawnand: fsl_elbc: Use ECC configuration from device tree

Initialize ECC configuration after nand_scan_ident() call and only in case
nand_scan_ident() have not done it. nand_scan_ident() fills ECC
configuration from device tree.

Fixes usage of NAND_ECC_SOFT_BCH when it is specified in device tree.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/mtd/nand/raw/fsl_elbc_nand.c