From: "Andreas Bießmann" <andreas.devel@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] NAND write error with HW ECC on OMAP3
Date: Thu, 05 Sep 2013 10:57:14 +0200 [thread overview]
Message-ID: <5228476A.8020907@gmail.com> (raw)
In-Reply-To: <CAK8F28mW+oDfBMHhQtci-c7D+c7r6XZzrqHUPnJoybmZnGpPfw@mail.gmail.com>
Dear Ash Charles,
On 09/05/2013 01:02 AM, Ash Charles wrote:
> Hi,
>
> I did a little bit more work with git bisect and found an issue on
> commit c788ecfdc3eb577757ffc1bfb8416added07ef33 "nand: Move the
> sub-page read support enable to a flag".
>
> Making this change on top of v2013.07 allowed me to again write to
> NAND correctly.
>
> -#define NAND_HAS_SUBPAGE_READ(chip) ((chip->options & NAND_SUBPAGE_READ))
> +#define NAND_HAS_SUBPAGE_READ(chip) ((chip->ecc.mode == NAND_ECC_SOFT) \
> + && (chip->page_shift > 9))
this check moved into nand_scan_tail() which is also handled when
calling nandecc from u-boot cmdline, on first sight your change isn't
not necessary. Can you please check if the chip->options is modified
somewhere between the nand_scan_tail() and the place where the
NAND_SUBPAGE_READ flag is checked?
> Like some other OMAP3 platforms, my platform uses 1-bit hardware ECC
> for the first NAND partition and software ECC elsewhere. Does this
> ecc.mode switch need to be partition specific?
This can not be partition specific by design. The ecc scheme is bound to
an NAND device and therefore we introduced the nandecc command for omap3
(cause ROM code can only handle 1 bit hamming, but today's devices
require sometimes more than 1 bit ecc).
Best regards
Andreas Bie?mann
next prev parent reply other threads:[~2013-09-05 8:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-03 19:34 [U-Boot] NAND write error with HW ECC on OMAP3 Ash Charles
2013-09-04 7:35 ` Andreas Bießmann
2013-09-04 8:54 ` Andreas Bießmann
2013-09-04 18:00 ` Ash Charles
2013-09-04 23:02 ` Ash Charles
2013-09-05 8:57 ` Andreas Bießmann [this message]
2013-09-07 1:57 ` Ash Charles
2013-09-05 8:42 ` Andreas Bießmann
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=5228476A.8020907@gmail.com \
--to=andreas.devel@googlemail.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