Skip to contentSkip to conversation

Common: SPL: spl_nand: Fixed debug correct NAND ECC type.

PATCH In review Ahmed Samir Khalil 2 participants 3 messages Mar 25, 2016 – Apr 2, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Common: SPL: spl_nand: Fixed debug correct NAND ECC type.

In case of #define DEBUG 1 (fordebugging SPL). A bug in spl_nand_load_image() will be triggered, because it prints using hw ecc regardless of soft ecc configurations and initializations.

---
 common/spl/spl_nand.c | 4 ++++
 1 file changed, 4 insertions(+)
common/spl/spl_nand.c +4 -0
index 3e2c074..79388ff 100644
@@ -44,7 +44,11 @@ int spl_nand_load_image(void)
 	int *src __attribute__((unused));
 	int *dst __attribute__((unused));
 
+#ifdef CONFIG_SPL_NAND_SOFTECC
+	debug("spl: nand - using sw ecc\n");
+#else
 	debug("spl: nand - using hw ecc\n");
+#endif
 	nand_init();
 
 	/*use CONFIG_SYS_TEXT_BASE as temporary storage area */
Signature · 1 line
2.5.0
#1 lore raw

PATCH 1/1 Common: SPL: spl_nand: Fixed debug correct NAND ECC type.

Quoted 6 lines · Ahmed Samir Khalil

In case of #define DEBUG 1 (fordebugging SPL). A bug in spl_nand_load_image() will be triggered, because it prints using hw ecc regardless of soft ecc configurations and initializations.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160325/0cd4102e/attachment.sig>
#2 lore raw
In reply to Ahmed Samir Khalil
Quoted 7 lines · Ahmed Samir Khalil

In case of #define DEBUG 1 (fordebugging SPL). A bug in spl_nand_load_image() will be triggered, because it prints using hw ecc regardless of soft ecc configurations and initializations.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160401/45e7fd88/attachment.sig>