]> git.dujemihanovic.xyz Git - u-boot.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)
commitc9ea9019c5aaeac474d2a243dc1482e1db2b7c6d
treefd0d0eb896c399d9d7be5dded8b8ecc28ffa4916
parentda98ddaf732098b30ee4169f4fa01059261fa9ab
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