blob: 5c18ea0f746ef82d6bb77452a32b54265b02c007 [file] [log] [blame]
developer53810fa2022-04-19 10:14:08 +08001From b341f120cfc9ca1dfd48364b7f36ac2c1fbdea43 Mon Sep 17 00:00:00 2001
2From: Xiangsheng Hou <xiangsheng.hou@mediatek.com>
3Date: Wed, 3 Apr 2019 16:30:01 +0800
4Subject: [PATCH 3/6] mtd: spinand: disable on-die ECC
5
6Change-Id: I9745adaed5295202fabbe8ab8947885c57a5b847
7Signed-off-by: Xiangsheng Hou <xiangsheng.hou@mediatek.com>
8---
9 drivers/mtd/nand/spi/core.c | 4 ++--
10 1 file changed, 2 insertions(+), 2 deletions(-)
11
12--- a/drivers/mtd/nand/spi/core.c
13+++ b/drivers/mtd/nand/spi/core.c
14@@ -491,7 +491,7 @@ static int spinand_mtd_read(struct mtd_i
15 int ret = 0;
16
17 if (ops->mode != MTD_OPS_RAW && spinand->eccinfo.ooblayout)
18- enable_ecc = true;
19+ enable_ecc = false;
20
21 mutex_lock(&spinand->lock);
22
23@@ -539,7 +539,7 @@ static int spinand_mtd_write(struct mtd_
24 int ret = 0;
25
26 if (ops->mode != MTD_OPS_RAW && mtd->ooblayout)
27- enable_ecc = true;
28+ enable_ecc = false;
29
30 mutex_lock(&spinand->lock);
31