mtd: rawnand: mxs_nand: Fix use_minimum_ecc for spl driver
Subsystems (3)
PATCH v2 1/1 mtd: rawnand: mxs_nand: Fix use_minimum_ecc for spl driver
Because mxs_nand_spl driver does not support DM, to use the minimum ECC layout, it needs to handle the CONFIG_NAND_MXS_USE_MINIMUM_ECC.
Signed-off-by Ye Li <[email protected]>
Reviewed-by Han Xu <[email protected]>
---
Changes in v2:
- Use IS_ENABLED to replace #ifdef
drivers/mtd/nand/raw/mxs_nand.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/mtd/nand/raw/mxs_nand.c +3 -0
@@ -1380,6 +1380,9 @@ int mxs_nand_init_spl(struct nand_chip *nand)else nand_info->max_ecc_strength_supported =40 ; +if (IS_ENABLED (CONFIG_NAND_MXS_USE_MINIMUM_ECC )) + nand_info->use_minimum_ecc = true; + err =mxs_nand_alloc_buffers (nand_info);if (err)return err;
Signature · 1 line
2.7.4
PATCH v2 1/1 mtd: rawnand: mxs_nand: Fix use_minimum_ecc for spl driver
Quoted 4 lines
Because
mxs_nand_spldriver does not support DM, to use the minimum ECC layout, it needs to handle theCONFIG_NAND_MXS_USE_MINIMUM_ECC.Signed-off-by Ye Li <[email protected]>Reviewed-by Han Xu <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================