summaryrefslogtreecommitdiffstats
path: root/Linux_x86
diff options
context:
space:
mode:
authorNick Pelly <npelly@google.com>2011-06-08 09:44:14 -0700
committerNick Pelly <npelly@google.com>2011-06-08 13:41:30 -0700
commit99141cdd942973bc0cb8ef208ef717b14eb73b8e (patch)
treeffb5bc7a177266c73706574f275f70f1f3c059ef /Linux_x86
parentffef684400a6420e365efeb77f5fffb747045c35 (diff)
downloadexternal_libnfc-nxp-99141cdd942973bc0cb8ef208ef717b14eb73b8e.zip
external_libnfc-nxp-99141cdd942973bc0cb8ef208ef717b14eb73b8e.tar.gz
external_libnfc-nxp-99141cdd942973bc0cb8ef208ef717b14eb73b8e.tar.bz2
Sleep 500us between i2c writes, as per latest advice from NXP.
This should fix pn544 lock-ups seen during wired-mode stress tests. Change-Id: I606b5909338dc889a475ad880df8646546b9ba40
Diffstat (limited to 'Linux_x86')
-rw-r--r--Linux_x86/phDal4Nfc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Linux_x86/phDal4Nfc.c b/Linux_x86/phDal4Nfc.c
index a8803e2..6d3c9fb 100644
--- a/Linux_x86/phDal4Nfc.c
+++ b/Linux_x86/phDal4Nfc.c
@@ -858,6 +858,7 @@ void phDal4Nfc_DeferredCb (void *params)
/* DAL_DEBUG("dalMsg->transactInfo.length : %d\n", dalMsg->transactInfo.length); */
/* Make a Physical WRITE */
/* NOTE: need to usleep(3000) here if the write is for SWP */
+ usleep(500); /* NXP advise 500us sleep required between I2C writes */
gReadWriteContext.nNbOfBytesWritten = gLinkFunc.write(gReadWriteContext.pWriteBuffer, gReadWriteContext.nNbOfBytesToWrite);
if (gReadWriteContext.nNbOfBytesWritten != gReadWriteContext.nNbOfBytesToWrite)
{