From: "Jiandong Zheng" <jdzheng@broadcom.com>
To: "Mike Dunn" <mikedunn@newsguy.com>
Cc: Lars-Peter Clausen <lars@metafoo.de>,
linux-mtd@lists.infradead.org,
Scott Branden <sbranden@broadcom.com>,
Prabhakar Kushwaha <prabhakar@freescale.com>
Subject: Re: [PATCH 2/7] mtd: nand: fix incorrect ecc strength values
Date: Tue, 1 May 2012 12:07:30 -0700 [thread overview]
Message-ID: <4FA03472.4030309@broadcom.com> (raw)
In-Reply-To: <1335295105-7981-3-git-send-email-mikedunn@newsguy.com>
On 4/24/2012 12:18 PM, Mike Dunn wrote:
> This fixes a couple of ecc strength values for which I earlier made conservative
> guesses, but whose correct values were later determined [1] (thanks Ivan). Also
> sets strength for fsl_ifc_nand, which was merged to mainline after the original
> patch that set the strength for all drivers.
>
> [1] http://lists.infradead.org/pipermail/linux-mtd/2012-March/040325.html
>
> Signed-off-by: Mike Dunn<mikedunn@newsguy.com>
> ---
> drivers/mtd/nand/bcm_umi_nand.c | 7 +------
> drivers/mtd/nand/fsl_ifc_nand.c | 1 +
> drivers/mtd/nand/jz4740_nand.c | 6 +-----
> 3 files changed, 3 insertions(+), 11 deletions(-)
>
> diff --git a/drivers/mtd/nand/bcm_umi_nand.c b/drivers/mtd/nand/bcm_umi_nand.c
> index 6908cdd..7134adf 100644
> --- a/drivers/mtd/nand/bcm_umi_nand.c
> +++ b/drivers/mtd/nand/bcm_umi_nand.c
> @@ -476,12 +476,7 @@ static int __devinit bcm_umi_nand_probe(struct platform_device *pdev)
> this->badblock_pattern =&largepage_bbt;
> }
>
> - /*
> - * FIXME: ecc strength value of 6 bits per 512 bytes of data is a
> - * conservative guess, given 13 ecc bytes and using bch alg.
> - * (Assume Galois field order m=15 to allow a margin of error.)
> - */
> - this->ecc.strength = 6;
> + this->ecc.strength = 8;
>
> #endif
>
>
Acked-by: Jiandong Zheng <jdzheng@broadcom.com>
next prev parent reply other threads:[~2012-05-01 19:07 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-24 19:18 [PATCH 0/7] mtd: Change meaning of -EUCLEAN return code on reads Mike Dunn
2012-04-24 19:18 ` [PATCH 1/7] mtd: ecc_strength is at ecc step granularity Mike Dunn
2012-04-24 19:18 ` [PATCH 2/7] mtd: nand: fix incorrect ecc strength values Mike Dunn
2012-05-01 19:07 ` Jiandong Zheng [this message]
2012-04-24 19:18 ` [PATCH 3/7] mtd: expose ecc_strength through sysfs Mike Dunn
2012-04-24 19:18 ` [PATCH 4/7] mtd: bitflip threshold added to mtd_info and sysfs Mike Dunn
2012-04-24 19:18 ` [PATCH 5/7] mtd: nand: read_page() returns max_bitflips Mike Dunn
2012-04-24 19:45 ` Scott Wood
2012-04-25 15:35 ` Mike Dunn
2012-04-25 9:20 ` Shmulik Ladkani
2012-04-24 19:18 ` [PATCH 6/7] mtd: nand: sanity checks of ecc strength in nand_scan_tail() Mike Dunn
2012-04-25 4:09 ` Brian Norris
2012-04-25 15:08 ` Mike Dunn
2012-04-24 19:18 ` [PATCH 7/7] mtd: driver _read() returns max_bitflips; mtd_read() returns -EUCLEAN Mike Dunn
2012-04-25 10:14 ` Shmulik Ladkani
2012-04-25 18:27 ` Robert Jarzmik
2012-04-25 19:13 ` Mike Dunn
2012-04-29 19:24 ` Artem Bityutskiy
2012-04-30 19:55 ` Mike Dunn
2012-04-30 20:31 ` Robert Jarzmik
2012-05-01 12:20 ` Artem Bityutskiy
2012-05-01 17:27 ` Mike Dunn
2012-05-01 18:51 ` Shmulik Ladkani
2012-05-02 3:59 ` Artem Bityutskiy
2012-04-25 11:23 ` [PATCH 0/7] mtd: Change meaning of -EUCLEAN return code on reads Ivan Djelic
2012-04-25 15:56 ` Mike Dunn
-- strict thread matches above, loose matches on Subject: below --
2012-04-25 19:06 [PATCH v2 " Mike Dunn
2012-04-25 19:06 ` [PATCH 2/7] mtd: nand: fix incorrect ecc strength values Mike Dunn
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=4FA03472.4030309@broadcom.com \
--to=jdzheng@broadcom.com \
--cc=lars@metafoo.de \
--cc=linux-mtd@lists.infradead.org \
--cc=mikedunn@newsguy.com \
--cc=prabhakar@freescale.com \
--cc=sbranden@broadcom.com \
/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;
as well as URLs for NNTP newsgroup(s).