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


Groups > linux.kernel > #1530721 > unrolled thread

[PATCH 34/39] mtd: nand: denali: fix the condition for 15 bit ECC strength

Started byMasahiro Yamada <yamada.masahiro@socionext.com>
First post2016-11-26 19:20 +0100
Last post2016-11-26 19:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 34/39] mtd: nand: denali: fix the condition for 15 bit ECC strength Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-11-26 19:20 +0100

#1530721 — [PATCH 34/39] mtd: nand: denali: fix the condition for 15 bit ECC strength

FromMasahiro Yamada <yamada.masahiro@socionext.com>
Date2016-11-26 19:20 +0100
Subject[PATCH 34/39] mtd: nand: denali: fix the condition for 15 bit ECC strength
Message-ID<sHPJT-1GL-5@gated-at.bofh.it>
It is valid to use the ECC when the OOB size is exactly the same as
the necessary size.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 drivers/mtd/nand/denali.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c
index 5d80f16..c17e92b 100644
--- a/drivers/mtd/nand/denali.c
+++ b/drivers/mtd/nand/denali.c
@@ -1600,7 +1600,7 @@ int denali_init(struct denali_nand_info *denali)
 	 * SLC if possible.
 	 * */
 	if (!nand_is_slc(chip) &&
-			mtd->oobsize > denali->bbtskipbytes +
+			mtd->oobsize >= denali->bbtskipbytes +
 			ECC_15BITS * (mtd->writesize / chip->ecc.size)) {
 		/* if MLC OOB size is large enough, use 15bit ECC*/
 		chip->ecc.strength = 15;
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web