CRIS v32: nand: set ECC algorithm explicitly
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon May 23 21:59:24 PDT 2016
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=40438a1ea7fb8326daffa692dbf41a5c60bbf3da
Commit: 40438a1ea7fb8326daffa692dbf41a5c60bbf3da
Parent: d5f304ac6aff1462ddf3c14f48e2b849ab68d5a3
Author: Rafał Miłecki <zajec5 at gmail.com>
AuthorDate: Sun Apr 17 22:53:00 2016 +0200
Committer: Boris Brezillon <boris.brezillon at free-electrons.com>
CommitDate: Thu May 5 23:52:03 2016 +0200
CRIS v32: nand: set ECC algorithm explicitly
This is part of process deprecating NAND_ECC_SOFT_BCH (and switching to
enum nand_ecc_algo).
Signed-off-by: Rafał Miłecki <zajec5 at gmail.com>
Acked-by: Mikael Starvik <starvik at axis.com>
Acked-by: Jesper Nilsson <jesper.nilsson at axis.com>
Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>
---
arch/cris/arch-v32/drivers/mach-a3/nandflash.c | 1 +
arch/cris/arch-v32/drivers/mach-fs/nandflash.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/arch/cris/arch-v32/drivers/mach-a3/nandflash.c b/arch/cris/arch-v32/drivers/mach-a3/nandflash.c
index 5aa3f51..3f646c7 100644
--- a/arch/cris/arch-v32/drivers/mach-a3/nandflash.c
+++ b/arch/cris/arch-v32/drivers/mach-a3/nandflash.c
@@ -157,6 +157,7 @@ struct mtd_info *__init crisv32_nand_flash_probe(void)
/* 20 us command delay time */
this->chip_delay = 20;
this->ecc.mode = NAND_ECC_SOFT;
+ this->ecc.algo = NAND_ECC_HAMMING;
/* Enable the following for a flash based bad block table */
/* this->bbt_options = NAND_BBT_USE_FLASH; */
diff --git a/arch/cris/arch-v32/drivers/mach-fs/nandflash.c b/arch/cris/arch-v32/drivers/mach-fs/nandflash.c
index a7c17b0..a745405 100644
--- a/arch/cris/arch-v32/drivers/mach-fs/nandflash.c
+++ b/arch/cris/arch-v32/drivers/mach-fs/nandflash.c
@@ -148,6 +148,7 @@ struct mtd_info *__init crisv32_nand_flash_probe(void)
/* 20 us command delay time */
this->chip_delay = 20;
this->ecc.mode = NAND_ECC_SOFT;
+ this->ecc.algo = NAND_ECC_HAMMING;
/* Enable the following for a flash based bad block table */
/* this->bbt_options = NAND_BBT_USE_FLASH; */
More information about the linux-mtd-cvs
mailing list