diff options
author | John Crispin <john@phrozen.org> | 2020-03-27 15:34:33 +0100 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2020-03-27 16:18:57 +0100 |
commit | d3f058db1cb9b2d43764cd0d84fdc2779f0abacf (patch) | |
tree | e94b7109ae76212b0f00f7380e22816ac5b49e52 /target/linux/mediatek/patches-5.4/0303-mtd-spinand-disable-on-die-ECC.patch | |
parent | 22d896eb218765f362587df6008f67018435d6a5 (diff) | |
download | upstream-d3f058db1cb9b2d43764cd0d84fdc2779f0abacf.tar.gz upstream-d3f058db1cb9b2d43764cd0d84fdc2779f0abacf.tar.bz2 upstream-d3f058db1cb9b2d43764cd0d84fdc2779f0abacf.zip |
mediatek: more v5.4 mtd fixes
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/mediatek/patches-5.4/0303-mtd-spinand-disable-on-die-ECC.patch')
-rw-r--r-- | target/linux/mediatek/patches-5.4/0303-mtd-spinand-disable-on-die-ECC.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/target/linux/mediatek/patches-5.4/0303-mtd-spinand-disable-on-die-ECC.patch b/target/linux/mediatek/patches-5.4/0303-mtd-spinand-disable-on-die-ECC.patch new file mode 100644 index 0000000000..cdf214688c --- /dev/null +++ b/target/linux/mediatek/patches-5.4/0303-mtd-spinand-disable-on-die-ECC.patch @@ -0,0 +1,31 @@ +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 +@@ -552,7 +552,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); + +@@ -600,7 +600,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); + |