Skip to contentSkip to conversation

mtd: rawnand: mxs_nand: Fix use_minimum_ecc for spl driver

PATCH New Ye Li 2 participants 2 messages Mar 31, 2022 – May 20, 2022

Subsystems (3)
lore
Share & tools
lore

Ye Li

author
#0 lore raw

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.

---
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
index ee5d7fd..0c4e559 100644
@@ -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
#1 lore raw

PATCH v2 1/1 mtd: rawnand: mxs_nand: Fix use_minimum_ecc for spl driver

Quoted 4 lines

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.

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]
=====================================================================