aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/patches-3.10/0148-mtd-nand-pxa3xx-Move-the-data-buffer-clean-to-prepar.patch
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2014-06-29 23:29:57 +0000
committerLuka Perkov <luka@openwrt.org>2014-06-29 23:29:57 +0000
commit26b06940a9bd894c1a21d76b160a3daea0843417 (patch)
treea733913cc70070f76d2d10693c57a9f97e11ba5e /target/linux/mvebu/patches-3.10/0148-mtd-nand-pxa3xx-Move-the-data-buffer-clean-to-prepar.patch
parentbe2a05778792e34afffff28a28091acfb2984b63 (diff)
downloadupstream-26b06940a9bd894c1a21d76b160a3daea0843417.tar.gz
upstream-26b06940a9bd894c1a21d76b160a3daea0843417.tar.bz2
upstream-26b06940a9bd894c1a21d76b160a3daea0843417.zip
mvebu: drop 3.10 support
Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 41406
Diffstat (limited to 'target/linux/mvebu/patches-3.10/0148-mtd-nand-pxa3xx-Move-the-data-buffer-clean-to-prepar.patch')
-rw-r--r--target/linux/mvebu/patches-3.10/0148-mtd-nand-pxa3xx-Move-the-data-buffer-clean-to-prepar.patch69
1 files changed, 0 insertions, 69 deletions
diff --git a/target/linux/mvebu/patches-3.10/0148-mtd-nand-pxa3xx-Move-the-data-buffer-clean-to-prepar.patch b/target/linux/mvebu/patches-3.10/0148-mtd-nand-pxa3xx-Move-the-data-buffer-clean-to-prepar.patch
deleted file mode 100644
index 3d74844f5c..0000000000
--- a/target/linux/mvebu/patches-3.10/0148-mtd-nand-pxa3xx-Move-the-data-buffer-clean-to-prepar.patch
+++ /dev/null
@@ -1,69 +0,0 @@
-From 1c0aed9b4cfb7bb891aab07a429436d017ac4d7c Mon Sep 17 00:00:00 2001
-From: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
-Date: Thu, 14 Nov 2013 18:25:34 -0300
-Subject: [PATCH 148/203] mtd: nand: pxa3xx: Move the data buffer clean to
- prepare_start_command()
-
-To allow future support of multiple page reading/writing, move the data
-buffer clean out of prepare_set_command().
-
-This is done to prevent the data buffer from being cleaned on every command
-preparation, when a multiple command sequence is implemented to read/write
-pages larger than the FIFO size (2 KiB).
-
-Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
-Tested-by: Daniel Mack <zonque@gmail.com>
-Signed-off-by: Brian Norris <computersforpeace@gmail.com>
----
- drivers/mtd/nand/pxa3xx_nand.c | 21 ++++++++++++++++-----
- 1 file changed, 16 insertions(+), 5 deletions(-)
-
---- a/drivers/mtd/nand/pxa3xx_nand.c
-+++ b/drivers/mtd/nand/pxa3xx_nand.c
-@@ -609,6 +609,9 @@ static void set_command_address(struct p
-
- static void prepare_start_command(struct pxa3xx_nand_info *info, int command)
- {
-+ struct pxa3xx_nand_host *host = info->host[info->cs];
-+ struct mtd_info *mtd = host->mtd;
-+
- /* reset data and oob column point to handle data */
- info->buf_start = 0;
- info->buf_count = 0;
-@@ -633,6 +636,19 @@ static void prepare_start_command(struct
- info->ndcb2 = 0;
- break;
- }
-+
-+ /*
-+ * If we are about to issue a read command, or about to set
-+ * the write address, then clean the data buffer.
-+ */
-+ if (command == NAND_CMD_READ0 ||
-+ command == NAND_CMD_READOOB ||
-+ command == NAND_CMD_SEQIN) {
-+
-+ info->buf_count = mtd->writesize + mtd->oobsize;
-+ memset(info->data_buff, 0xFF, info->buf_count);
-+ }
-+
- }
-
- static int prepare_set_command(struct pxa3xx_nand_info *info, int command,
-@@ -674,16 +690,11 @@ static int prepare_set_command(struct px
- info->ndcb0 |= NDCB0_DBC | (NAND_CMD_READSTART << 8);
-
- set_command_address(info, mtd->writesize, column, page_addr);
-- info->buf_count = mtd->writesize + mtd->oobsize;
-- memset(info->data_buff, 0xFF, info->buf_count);
- break;
-
- case NAND_CMD_SEQIN:
-
- set_command_address(info, mtd->writesize, column, page_addr);
-- info->buf_count = mtd->writesize + mtd->oobsize;
-- memset(info->data_buff, 0xFF, info->buf_count);
--
- break;
-
- case NAND_CMD_PAGEPROG: