mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-22 12:28:23 +00:00
adcd77a0bd
Removed upstreamed patches: pending-5.4/499-mtd-parser-cmdline-Fix-parsing-of-part-names-with-co.patch Manually merged: pending-5.4/611-netfilter_match_bypass_default_table.patch layerscape/302-dts-0112-arm64-dts-fsl-ls1028a-prepare-dts-for-overlay.patch Build-tested: ipq806x/R7800, bcm27xx/bcm2711, ath79/{generic,tiny}, ipq40xx, octeon, ramips/mt7621, realtek, x86/64 Run-tested: ipq806x/R7800, realtek Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Tested-by: John Audia <graysky@archlinux.us> Tested-by: Stijn Segers <foss@volatilesystems.org> Signed-off-by: maurerr <mariusd84@gmail.com>
32 lines
913 B
Diff
32 lines
913 B
Diff
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
|
|
@@ -495,7 +495,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);
|
|
|
|
@@ -543,7 +543,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);
|
|
|