aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-09-17 20:30:54 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-09-17 20:30:54 +0000
commit3bdf0bc36fc5a7efd442ae84c09138524dcfa7d2 (patch)
tree902e1751b327b28f16d399ff549eabadd8030335 /target
parentb7cb43f6a6f33416fdac54b7ae84c96d56b050ff (diff)
downloadupstream-3bdf0bc36fc5a7efd442ae84c09138524dcfa7d2.tar.gz
upstream-3bdf0bc36fc5a7efd442ae84c09138524dcfa7d2.tar.bz2
upstream-3bdf0bc36fc5a7efd442ae84c09138524dcfa7d2.zip
ar71xx: ar934x_nfc: increase DMA retry count
SVN-Revision: 33453
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c b/target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c
index a0f2a6ad56..67844e3a48 100644
--- a/target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c
+++ b/target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c
@@ -131,6 +131,7 @@
#define AR934X_NFC_DEV_READY_TIMEOUT 25 /* msecs */
#define AR934X_NFC_DMA_READY_TIMEOUT 25 /* msecs */
#define AR934X_NFC_DONE_TIMEOUT 1000
+#define AR934X_NFC_DMA_RETRIES 20
#define AR934X_NFC_USE_IRQ true
#define AR934X_NFC_IRQ_MASK AR934X_NFC_INT_DEV_RDY(0)
@@ -465,7 +466,7 @@ retry:
(write) ? "write" : "read", page_addr);
ar934x_nfc_restart(nfc);
- if (retries++ < 5)
+ if (retries++ < AR934X_NFC_DMA_RETRIES)
goto retry;
dev_err(nfc->parent, "%s operation failed on page %d\n",