mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 23:16:16 +02:00
ar71xx: ar934x_nfc: increase DMA retry count
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33453 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
5c9038f12e
commit
52f5b88b84
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user