From: "Rafał Miłecki" <zajec5@gmail.com>
To: Boris Brezillon <boris.brezillon@free-electrons.com>
Cc: "Richard Weinberger" <richard@nod.at>,
linux-mtd@lists.infradead.org, "Rafał Miłecki" <zajec5@gmail.com>,
"David Woodhouse" <dwmw2@infradead.org>,
"Brian Norris" <computersforpeace@gmail.com>,
linux-kernel@vger.kernel.org (open list)
Subject: [PATCH 2/8] mtd: nand: gpio: set ECC algorithm explicitly
Date: Fri, 8 Apr 2016 12:23:45 +0200 [thread overview]
Message-ID: <1460111031-8706-3-git-send-email-zajec5@gmail.com> (raw)
In-Reply-To: <1460111031-8706-1-git-send-email-zajec5@gmail.com>
This is part of process deprecating NAND_ECC_SOFT_BCH (and switching to
enum nand_ecc_algo).
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
---
drivers/mtd/nand/gpio.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mtd/nand/gpio.c b/drivers/mtd/nand/gpio.c
index ded658f..6317f68 100644
--- a/drivers/mtd/nand/gpio.c
+++ b/drivers/mtd/nand/gpio.c
@@ -273,6 +273,7 @@ static int gpio_nand_probe(struct platform_device *pdev)
nand_set_flash_node(chip, pdev->dev.of_node);
chip->IO_ADDR_W = chip->IO_ADDR_R;
chip->ecc.mode = NAND_ECC_SOFT;
+ chip->ecc.algo = NAND_ECC_HAMMING;
chip->options = gpiomtd->plat.options;
chip->chip_delay = gpiomtd->plat.chip_delay;
chip->cmd_ctrl = gpio_nand_cmd_ctrl;
--
1.8.4.5
next prev parent reply other threads:[~2016-04-08 10:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-08 10:23 [PATCH 0/8] mtd: nand: set ECC algorithm explicitly Rafał Miłecki
2016-04-08 10:23 ` [PATCH 1/8] mtd: nand: ams-delta: " Rafał Miłecki
2016-04-08 10:23 ` Rafał Miłecki [this message]
2016-04-08 10:23 ` [PATCH 3/8] mtd: nand: mxc: " Rafał Miłecki
2016-04-08 10:23 ` [PATCH 4/8] mtd: nand: nuc900: " Rafał Miłecki
2016-04-08 10:23 ` [PATCH 5/8] mtd: nand: orion: " Rafał Miłecki
2016-04-08 10:23 ` [PATCH 6/8] mtd: nand: pasemi: " Rafał Miłecki
2016-04-08 10:23 ` [PATCH 7/8] mtd: nand: plat: " Rafał Miłecki
2016-04-08 10:23 ` [PATCH 8/8] mtd: nand: socrates: " Rafał Miłecki
2016-04-13 7:45 ` [PATCH 0/8] mtd: nand: " Boris Brezillon
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=1460111031-8706-3-git-send-email-zajec5@gmail.com \
--to=zajec5@gmail.com \
--cc=boris.brezillon@free-electrons.com \
--cc=computersforpeace@gmail.com \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=richard@nod.at \
/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