All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] mtd: rawnand: mxs_nand: Fix use_minimum_ecc for spl driver
@ 2022-03-31  5:27 Ye Li
  2022-05-20 13:41 ` sbabic
  0 siblings, 1 reply; 2+ messages in thread
From: Ye Li @ 2022-03-31  5:27 UTC (permalink / raw)
  To: sbabic, han.xu, festevam, u-boot
  Cc: sean, frieder.schrempf, miquel.raynal, peng.fan, uboot-imx

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 <ye.li@nxp.com>
Reviewed-by: Han Xu <han.xu@nxp.com>
---
Changes in v2:
 - Use IS_ENABLED to replace #ifdef
 
 drivers/mtd/nand/raw/mxs_nand.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/mtd/nand/raw/mxs_nand.c b/drivers/mtd/nand/raw/mxs_nand.c
index ee5d7fd..0c4e559 100644
--- a/drivers/mtd/nand/raw/mxs_nand.c
+++ b/drivers/mtd/nand/raw/mxs_nand.c
@@ -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;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH v2] mtd: rawnand: mxs_nand: Fix use_minimum_ecc for spl driver
  2022-03-31  5:27 [PATCH v2] mtd: rawnand: mxs_nand: Fix use_minimum_ecc for spl driver Ye Li
@ 2022-05-20 13:41 ` sbabic
  0 siblings, 0 replies; 2+ messages in thread
From: sbabic @ 2022-05-20 13:41 UTC (permalink / raw)
  To: Ye Li, u-boot

> 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 <ye.li@nxp.com>
> Reviewed-by: Han Xu <han.xu@nxp.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
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: sbabic@denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-20 13:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-31  5:27 [PATCH v2] mtd: rawnand: mxs_nand: Fix use_minimum_ecc for spl driver Ye Li
2022-05-20 13:41 ` sbabic

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.