public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Boris Brezillon <boris.brezillon@bootlin.com>
To: Stefan Agner <stefan@agner.ch>
Cc: boris.brezillon@free-electrons.com, richard@nod.at,
	marek.vasut@gmail.com, linux-mtd@lists.infradead.org,
	stable@vger.kernel.org, cyrille.pitchen@wedev4u.fr,
	computersforpeace@gmail.com, dwmw2@infradead.org
Subject: Re: [PATCH] mtd: nand: vf610: set correct ooblayout
Date: Mon, 12 Feb 2018 22:22:59 +0100	[thread overview]
Message-ID: <20180212222259.57b62131@bbrezillon> (raw)
In-Reply-To: <20180209122142.13272-1-stefan@agner.ch>

On Fri,  9 Feb 2018 13:21:42 +0100
Stefan Agner <stefan@agner.ch> wrote:

> With commit 3cf32d180227 ("mtd: nand: vf610: switch to
> mtd_ooblayout_ops") the driver started to use the NAND cores
> default large page ooblayout. However, shortly after commit
> 6a623e076944 ("mtd: nand: add ooblayout for old hamming layout")
> changed the default layout to the old hamming layout, which is
> not what vf610_nfc is using. Specify the default large page
> layout explicitly.

Applied.

Thanks,

Boris

> 
> Fixes: 6a623e076944 ("mtd: nand: add ooblayout for old hamming layout")
> Cc: <stable@vger.kernel.org> # v4.12+
> Signed-off-by: Stefan Agner <stefan@agner.ch>
> ---
>  drivers/mtd/nand/vf610_nfc.c | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/mtd/nand/vf610_nfc.c b/drivers/mtd/nand/vf610_nfc.c
> index 80d31a58e558..f367144f3c6f 100644
> --- a/drivers/mtd/nand/vf610_nfc.c
> +++ b/drivers/mtd/nand/vf610_nfc.c
> @@ -752,10 +752,8 @@ static int vf610_nfc_probe(struct platform_device *pdev)
>  		if (mtd->oobsize > 64)
>  			mtd->oobsize = 64;
>  
> -		/*
> -		 * mtd->ecclayout is not specified here because we're using the
> -		 * default large page ECC layout defined in NAND core.
> -		 */
> +		/* Use default large page ECC layout defined in NAND core */
> +		mtd_set_ooblayout(mtd, &nand_ooblayout_lp_ops);
>  		if (chip->ecc.strength == 32) {
>  			nfc->ecc_mode = ECC_60_BYTE;
>  			chip->ecc.bytes = 60;



-- 
Boris Brezillon, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
http://bootlin.com

      reply	other threads:[~2018-02-12 21:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-09 12:21 [PATCH] mtd: nand: vf610: set correct ooblayout Stefan Agner
2018-02-12 21:22 ` 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=20180212222259.57b62131@bbrezillon \
    --to=boris.brezillon@bootlin.com \
    --cc=boris.brezillon@free-electrons.com \
    --cc=computersforpeace@gmail.com \
    --cc=cyrille.pitchen@wedev4u.fr \
    --cc=dwmw2@infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=marek.vasut@gmail.com \
    --cc=richard@nod.at \
    --cc=stable@vger.kernel.org \
    --cc=stefan@agner.ch \
    /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