Common: SPL: spl_nand: Fixed debug correct NAND ECC type.
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.
Signed-off-by Ahmed Samir <[email protected]>
--- common/spl/spl_nand.c | 4 ++++ 1 file changed, 4 insertions(+)
common/spl/spl_nand.c +4 -0
@@ -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
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.Signed-off-by Ahmed Samir <[email protected]>
Reviewed-by Tom Rini <[email protected]>
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>
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.Signed-off-by Ahmed Samir <[email protected]>Reviewed-by Tom Rini <[email protected]>
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>