lantiq: add missing NAND_WRITE_DATA in NAND driver.
authorFelix Fietkau <nbd@openwrt.org>
Mon, 5 Jan 2015 21:37:21 +0000 (21:37 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 5 Jan 2015 21:37:21 +0000 (21:37 +0000)
Signed-off-by: Sylwester Petela <sscapi@gmail.com>
SVN-Revision: 43856

target/linux/lantiq/patches-3.14/0016-MTD-lantiq-xway-add-missing-write_buf-and-read_buf-t.patch
target/linux/lantiq/patches-3.14/0017-MTD-xway-fix-nand-locking.patch

index c83a79e8733b341f905d9aedbb1e1b2e61513338..f20878cd257fdae3e941678a2f5c628c17e1ed7b 100644 (file)
@@ -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);
 +}
 +
index 1b0c01a9d6fe24dfab2082c65f20fe400cbafbaf..737469aab554228db2bbe9366fb940c21eba539b 100644 (file)
@@ -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);
  }