diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-07-22 18:42:36 +0000 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2013-07-22 18:42:36 +0000 |
commit | 44745f714e6d72ab09684d937f2fd87699511f52 (patch) | |
tree | f2a5ed3512b164d80d8cb904c62bdc7ccc48b9af /target/linux/xburst/patches-3.8/0003-NAND-Optimize-NAND_ECC_HW_OOB_FIRST-read.patch | |
parent | 32a83db34718f3145068d8f0af010320430d68c0 (diff) | |
download | master-31e0f0ae-44745f714e6d72ab09684d937f2fd87699511f52.tar.gz master-31e0f0ae-44745f714e6d72ab09684d937f2fd87699511f52.tar.bz2 master-31e0f0ae-44745f714e6d72ab09684d937f2fd87699511f52.zip |
xburst: Remove 3.8 support
3.8 support for this platform is broken, so remove it.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
SVN-Revision: 37511
Diffstat (limited to 'target/linux/xburst/patches-3.8/0003-NAND-Optimize-NAND_ECC_HW_OOB_FIRST-read.patch')
-rw-r--r-- | target/linux/xburst/patches-3.8/0003-NAND-Optimize-NAND_ECC_HW_OOB_FIRST-read.patch | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/target/linux/xburst/patches-3.8/0003-NAND-Optimize-NAND_ECC_HW_OOB_FIRST-read.patch b/target/linux/xburst/patches-3.8/0003-NAND-Optimize-NAND_ECC_HW_OOB_FIRST-read.patch deleted file mode 100644 index 2cc3cb00b8..0000000000 --- a/target/linux/xburst/patches-3.8/0003-NAND-Optimize-NAND_ECC_HW_OOB_FIRST-read.patch +++ /dev/null @@ -1,31 +0,0 @@ -From b971c50dc50c07f981a1619f977e7509db9c4eac Mon Sep 17 00:00:00 2001 -From: Lars-Peter Clausen <lars@metafoo.de> -Date: Sat, 26 Feb 2011 15:30:07 +0100 -Subject: [PATCH 03/21] NAND: Optimize NAND_ECC_HW_OOB_FIRST read - -Avoid sending unnecessary READ commands to the chip. ---- - drivers/mtd/nand/nand_base.c | 14 ++++++++++---- - 1 files changed, 10 insertions(+), 4 deletions(-) - ---- a/drivers/mtd/nand/nand_base.c -+++ b/drivers/mtd/nand/nand_base.c -@@ -1299,9 +1299,15 @@ static int nand_read_page_hwecc_oob_firs - unsigned int max_bitflips = 0; - - /* Read the OOB area first */ -- chip->cmdfunc(mtd, NAND_CMD_READOOB, 0, page); -- chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); -- chip->cmdfunc(mtd, NAND_CMD_READ0, 0, page); -+ if (mtd->writesize > 512) { -+ chip->cmdfunc(mtd, NAND_CMD_READ0, mtd->writesize, page); -+ chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); -+ chip->cmdfunc(mtd, NAND_CMD_RNDOUT, 0, -1); -+ } else { -+ chip->cmdfunc(mtd, NAND_CMD_READOOB, 0, page); -+ chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); -+ chip->cmdfunc(mtd, NAND_CMD_READ0, 0, page); -+ } - - for (i = 0; i < chip->ecc.total; i++) - ecc_code[i] = chip->oob_poi[eccpos[i]]; |