diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-09-17 20:30:54 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-09-17 20:30:54 +0000 |
commit | 821819c0fd9b00ea4dd9dc23573ca9ccc7f82efe (patch) | |
tree | 58b0dfdedea1fd90e5b83f466287f2e6b7c449d9 /target/linux/ar71xx/files/drivers/mtd | |
parent | 9ffbc4ff02810b55b95de9f370f42e25c24d8aac (diff) | |
download | upstream-821819c0fd9b00ea4dd9dc23573ca9ccc7f82efe.tar.gz upstream-821819c0fd9b00ea4dd9dc23573ca9ccc7f82efe.tar.bz2 upstream-821819c0fd9b00ea4dd9dc23573ca9ccc7f82efe.zip |
ar71xx: ar934x_nfc: increase DMA retry count
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33453 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/drivers/mtd')
-rw-r--r-- | target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c | 3 |
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", |