diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-01-05 21:37:21 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-01-05 21:37:21 +0000 |
commit | d0eb0abc791b8e47e002ead4fe9f8935c86959f3 (patch) | |
tree | 0c0eb6381d98050d421161dceb7b95592c66b74f /target | |
parent | 61c6d6013d5f30219567264cdf10a85ab707bee7 (diff) | |
download | upstream-d0eb0abc791b8e47e002ead4fe9f8935c86959f3.tar.gz upstream-d0eb0abc791b8e47e002ead4fe9f8935c86959f3.tar.bz2 upstream-d0eb0abc791b8e47e002ead4fe9f8935c86959f3.zip |
lantiq: add missing NAND_WRITE_DATA in NAND driver.
Signed-off-by: Sylwester Petela <sscapi@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43856 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/lantiq/patches-3.14/0016-MTD-lantiq-xway-add-missing-write_buf-and-read_buf-t.patch | 2 | ||||
-rw-r--r-- | target/linux/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 c83a79e873..f20878cd25 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 <blogic@openwrt.org> + + 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 1b0c01a9d6..737469aab5 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 <blogic@openwrt.org> - 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); } |