[OpenWrt-Devel] [PATCH] [Lantiq] - Add missing NAND_WRITE_DATA in NAND driver

Sylwek sscapi at gmail.com
Sat Dec 27 03:52:04 EST 2014


Add missing NAND_WRITE_DATA in NAND driver.

Signed-off-by: Sylwester Petela <sscapi at gmail.com>
---

--- 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 at open
 +
 +	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);
 +}
 +
--- 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 at open
  
 -	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);
  }
  
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list