aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/patches-5.10/310-mtd-spinand-disable-on-die-ECC.patch
diff options
context:
space:
mode:
authorChuanhong Guo <gch981213@gmail.com>2021-08-20 14:23:38 +0800
committerChuanhong Guo <gch981213@gmail.com>2021-08-27 10:26:25 +0800
commitc6ed31630d6c9a1cb8b83a37bac77e480bc127b7 (patch)
treecce675efb0a0d322848e779f28a87f2960742ed3 /target/linux/mediatek/patches-5.10/310-mtd-spinand-disable-on-die-ECC.patch
parente8e8487603d306f989f6d582ff04a93e1f0636b1 (diff)
downloadupstream-c6ed31630d6c9a1cb8b83a37bac77e480bc127b7.tar.gz
upstream-c6ed31630d6c9a1cb8b83a37bac77e480bc127b7.tar.bz2
upstream-c6ed31630d6c9a1cb8b83a37bac77e480bc127b7.zip
mediatek: remove spi-nand hacks from 5.10
we now have a standalone mtd driver and the old spi-mem driver along with the hack in spi-nand core can be removed. Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target/linux/mediatek/patches-5.10/310-mtd-spinand-disable-on-die-ECC.patch')
-rw-r--r--target/linux/mediatek/patches-5.10/310-mtd-spinand-disable-on-die-ECC.patch31
1 files changed, 0 insertions, 31 deletions
diff --git a/target/linux/mediatek/patches-5.10/310-mtd-spinand-disable-on-die-ECC.patch b/target/linux/mediatek/patches-5.10/310-mtd-spinand-disable-on-die-ECC.patch
deleted file mode 100644
index e608113865..0000000000
--- a/target/linux/mediatek/patches-5.10/310-mtd-spinand-disable-on-die-ECC.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From b341f120cfc9ca1dfd48364b7f36ac2c1fbdea43 Mon Sep 17 00:00:00 2001
-From: Xiangsheng Hou <xiangsheng.hou@mediatek.com>
-Date: Wed, 3 Apr 2019 16:30:01 +0800
-Subject: [PATCH 3/6] mtd: spinand: disable on-die ECC
-
-Change-Id: I9745adaed5295202fabbe8ab8947885c57a5b847
-Signed-off-by: Xiangsheng Hou <xiangsheng.hou@mediatek.com>
----
- drivers/mtd/nand/spi/core.c | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
---- a/drivers/mtd/nand/spi/core.c
-+++ b/drivers/mtd/nand/spi/core.c
-@@ -493,7 +493,7 @@ static int spinand_mtd_read(struct mtd_i
- int ret = 0;
-
- if (ops->mode != MTD_OPS_RAW && spinand->eccinfo.ooblayout)
-- enable_ecc = true;
-+ enable_ecc = false;
-
- mutex_lock(&spinand->lock);
-
-@@ -541,7 +541,7 @@ static int spinand_mtd_write(struct mtd_
- int ret = 0;
-
- if (ops->mode != MTD_OPS_RAW && mtd->ooblayout)
-- enable_ecc = true;
-+ enable_ecc = false;
-
- mutex_lock(&spinand->lock);
-