From 5bbe758e4ed46997df2fda0296974e1a6032a3be Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 5 Jan 2015 21:37:21 +0000 Subject: [PATCH] lantiq: add missing NAND_WRITE_DATA in NAND driver. Signed-off-by: Sylwester Petela SVN-Revision: 43856 --- ...6-MTD-lantiq-xway-add-missing-write_buf-and-read_buf-t.patch | 2 +- .../lantiq/patches-3.14/0017-MTD-xway-fix-nand-locking.patch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/lantiq/patches-3.14/0016-MTD-lantiq-xway-add-missing-write_buf-and-read_buf-t.patch b/target/linux/lantiq/patches-3.14/0016-MTD-lantiq-xway-add-missing-write_buf-and-read_buf-t.patch index c83a79e8733..f20878cd257 100644 --- a/target/linux/lantiq/patches-3.14/0016-MTD-lantiq-xway-add-missing-write_buf-and-read_buf-t.patch +++ b/target/linux/lantiq/patches-3.14/0016-MTD-lantiq-xway-add-missing-write_buf-and-read_buf-t.patch @@ -37,7 +37,7 @@ Signed-off-by: John Crispin + + spin_lock_irqsave(&ebu_lock, flags); + for (i = 0; i < len; i++) -+ ltq_w8(buf[i], (void __iomem *)nandaddr); ++ ltq_w8(buf[i], (void __iomem *)(nandaddr | NAND_WRITE_DATA)); + spin_unlock_irqrestore(&ebu_lock, flags); +} + diff --git a/target/linux/lantiq/patches-3.14/0017-MTD-xway-fix-nand-locking.patch b/target/linux/lantiq/patches-3.14/0017-MTD-xway-fix-nand-locking.patch index 1b0c01a9d6f..737469aab55 100644 --- a/target/linux/lantiq/patches-3.14/0017-MTD-xway-fix-nand-locking.patch +++ b/target/linux/lantiq/patches-3.14/0017-MTD-xway-fix-nand-locking.patch @@ -82,7 +82,7 @@ Signed-off-by: John Crispin - spin_lock_irqsave(&ebu_lock, flags); for (i = 0; i < len; i++) - ltq_w8(buf[i], (void __iomem *)nandaddr); + ltq_w8(buf[i], (void __iomem *)(nandaddr | NAND_WRITE_DATA)); - spin_unlock_irqrestore(&ebu_lock, flags); } -- 2.30.2