summaryrefslogtreecommitdiff
path: root/target/linux/xburst/patches-3.2/0003-NAND-Optimize-NAND_ECC_HW_OOB_FIRST-read.patch
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2012-04-09 14:48:51 +0000
committerJonas Gorski <jogo@openwrt.org>2012-04-09 14:48:51 +0000
commit16b4cbcdd64d92f6e79d41e11eda25a178ef3b53 (patch)
treebd75cb94a45491fc7adfc7874a0f794afe565cbc /target/linux/xburst/patches-3.2/0003-NAND-Optimize-NAND_ECC_HW_OOB_FIRST-read.patch
parent1a57b05f472e60b05a8a4360718253820e8fece4 (diff)
downloadmtk-20170518-16b4cbcdd64d92f6e79d41e11eda25a178ef3b53.zip
mtk-20170518-16b4cbcdd64d92f6e79d41e11eda25a178ef3b53.tar.gz
mtk-20170518-16b4cbcdd64d92f6e79d41e11eda25a178ef3b53.tar.bz2
kernel: update linux 3.2 to 3.2.14
SVN-Revision: 31222
Diffstat (limited to 'target/linux/xburst/patches-3.2/0003-NAND-Optimize-NAND_ECC_HW_OOB_FIRST-read.patch')
-rw-r--r--target/linux/xburst/patches-3.2/0003-NAND-Optimize-NAND_ECC_HW_OOB_FIRST-read.patch9
1 files changed, 2 insertions, 7 deletions
diff --git a/target/linux/xburst/patches-3.2/0003-NAND-Optimize-NAND_ECC_HW_OOB_FIRST-read.patch b/target/linux/xburst/patches-3.2/0003-NAND-Optimize-NAND_ECC_HW_OOB_FIRST-read.patch
index b92c967..9583ab7 100644
--- a/target/linux/xburst/patches-3.2/0003-NAND-Optimize-NAND_ECC_HW_OOB_FIRST-read.patch
+++ b/target/linux/xburst/patches-3.2/0003-NAND-Optimize-NAND_ECC_HW_OOB_FIRST-read.patch
@@ -8,11 +8,9 @@ Avoid sending unnecessary READ commands to the chip.
drivers/mtd/nand/nand_base.c | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
-diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
-index 3ed9c5e..184aa93 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
-@@ -1294,9 +1294,15 @@ static int nand_read_page_hwecc_oob_first(struct mtd_info *mtd,
+@@ -1294,9 +1294,15 @@ static int nand_read_page_hwecc_oob_firs
uint8_t *ecc_calc = chip->buffers->ecccalc;
/* Read the OOB area first */
@@ -31,7 +29,7 @@ index 3ed9c5e..184aa93 100644
for (i = 0; i < chip->ecc.total; i++)
ecc_code[i] = chip->oob_poi[eccpos[i]];
-@@ -1465,7 +1471,7 @@ static int nand_do_read_ops(struct mtd_info *mtd, loff_t from,
+@@ -1465,7 +1471,7 @@ static int nand_do_read_ops(struct mtd_i
if (realpage != chip->pagebuf || oob) {
bufpoi = aligned ? buf : chip->buffers->databuf;
@@ -40,6 +38,3 @@ index 3ed9c5e..184aa93 100644
chip->cmdfunc(mtd, NAND_CMD_READ0, 0x00, page);
sndcmd = 0;
}
---
-1.7.5.4
-