From: Boris Brezillon <boris.brezillon@free-electrons.com>
To: Albert Hsieh <wen.hsieh@broadcom.com>, richard@nod.at
Cc: computersforpeace@gmail.com, hsiehwt@gmail.com,
kdasu.kdev@gmail.com, linux-kernel@vger.kernel.org,
marek.vasut@gmail.com, linux-mtd@lists.infradead.org,
cyrille.pitchen@wedev4u.fr,
bcm-kernel-feedback-list@broadcom.com, dwmw2@infradead.org
Subject: Re: [PATCH 1/1] mtd: nand: brcmnand: Zero bitflip is not an error
Date: Wed, 6 Dec 2017 10:16:45 +0100 [thread overview]
Message-ID: <20171206101645.0576dff9@bbrezillon> (raw)
In-Reply-To: <1511148386-14573-1-git-send-email-wen.hsieh@broadcom.com>
On Mon, 20 Nov 2017 11:26:26 +0800
Albert Hsieh <wen.hsieh@broadcom.com> wrote:
> A negative return value of brcmstb_nand_verify_erased_page() indicates a
> real bitflip error of an erased page, and other return values (>= 0) show
> the corrected bitflip number. Zero return value means no bitflip, but the
> current driver code treats it as an error, and eventually leads to
> falsely reported ECC error.
>
> Fixes: 02b88eea9f9c ("mtd: brcmnand: Add check for erased page bitflip")
> Signed-off-by: Albert Hsieh <wen.hsieh@broadcom.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Cc: <stable@vger.kernel.org>
Richard, can you queue this patch to the mtd/master branch?
Thanks,
Boris
> ---
> drivers/mtd/nand/brcmnand/brcmnand.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mtd/nand/brcmnand/brcmnand.c b/drivers/mtd/nand/brcmnand/brcmnand.c
> index e0eb51d..dd56a67 100644
> --- a/drivers/mtd/nand/brcmnand/brcmnand.c
> +++ b/drivers/mtd/nand/brcmnand/brcmnand.c
> @@ -1763,7 +1763,7 @@ static int brcmnand_read(struct mtd_info *mtd, struct nand_chip *chip,
> err = brcmstb_nand_verify_erased_page(mtd, chip, buf,
> addr);
> /* erased page bitflips corrected */
> - if (err > 0)
> + if (err >= 0)
> return err;
> }
>
prev parent reply other threads:[~2017-12-06 9:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-20 3:26 [PATCH 1/1] mtd: nand: brcmnand: Zero bitflip is not an error Albert Hsieh
2017-12-06 9:16 ` Boris Brezillon [this message]
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=20171206101645.0576dff9@bbrezillon \
--to=boris.brezillon@free-electrons.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=computersforpeace@gmail.com \
--cc=cyrille.pitchen@wedev4u.fr \
--cc=dwmw2@infradead.org \
--cc=hsiehwt@gmail.com \
--cc=kdasu.kdev@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=marek.vasut@gmail.com \
--cc=richard@nod.at \
--cc=wen.hsieh@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.