Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1377866

[PATCH 7/9] mtd: nand: fsl_upm: set ECC algorithm explicitly

From Rafał Miłecki <zajec5@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 7/9] mtd: nand: fsl_upm: set ECC algorithm explicitly
Date 2016-04-13 14:10 +0200
Message-ID <rnrMm-116-31@gated-at.bofh.it> (permalink)
References <rnrMm-116-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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/fsl_upm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/nand/fsl_upm.c b/drivers/mtd/nand/fsl_upm.c
index cafd12d..d85fa25 100644
--- a/drivers/mtd/nand/fsl_upm.c
+++ b/drivers/mtd/nand/fsl_upm.c
@@ -170,6 +170,7 @@ static int fun_chip_init(struct fsl_upm_nand *fun,
 	fun->chip.read_buf = fun_read_buf;
 	fun->chip.write_buf = fun_write_buf;
 	fun->chip.ecc.mode = NAND_ECC_SOFT;
+	fun->chip.ecc.algo = NAND_ECC_HAMMING;
 	if (fun->mchip_count > 1)
 		fun->chip.select_chip = fun_select_chip;
 
-- 
1.8.4.5

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH 7/9] mtd: nand: fsl_upm: set ECC algorithm explicitly Rafał Miłecki <zajec5@gmail.com> - 2016-04-13 14:10 +0200

csiph-web