From: Steve Sakoman <steve@sakoman.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] env_nand: Use nand_read_skip_bad instead of nand_read
Date: Fri, 19 Nov 2010 06:45:47 -0800 [thread overview]
Message-ID: <1290177947.2927.1631.camel@quadra> (raw)
Otherwise environment read will fail if correctable errors occur
Signed-off-by: Steve Sakoman <steve.sakoman@linaro.org>
---
diff --git a/common/env_nand.c b/common/env_nand.c
index 4e8307a..7f6c917 100644
--- a/common/env_nand.c
+++ b/common/env_nand.c
@@ -297,7 +297,7 @@ int readenv(size_t offset, u_char * buf)
offset += blocksize;
} else {
char_ptr = &buf[amount_loaded];
- if (nand_read(&nand_info[0], offset, &len, char_ptr))
+ if (nand_read_skip_bad(&nand_info[0], offset, &len, char_ptr))
return 1;
offset += blocksize;
amount_loaded += len;
next reply other threads:[~2010-11-19 14:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-19 14:45 Steve Sakoman [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-12-03 23:25 [U-Boot] [PATCH] env_nand: Use nand_read_skip_bad instead of nand_read Steve Sakoman
2010-12-05 21:22 ` Paulraj, Sandeep
2010-12-06 17:13 ` Scott Wood
2010-12-07 0:30 ` Scott Wood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1290177947.2927.1631.camel@quadra \
--to=steve@sakoman.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox