History log of /external/libnfc-nxp/Linux_x86/phOsalNfc.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6141c4b7a438cacda2a54aa20c83700cd6f314a7 09-Jun-2012 Martijn Coenen <maco@google.com> Remove some logs in case of abort().

This allows us to see more context of HCI timeout
crashes.

Change-Id: I5cf1f829f3d0db5afd8d2c753fba7c3f8ad70365
/external/libnfc-nxp/Linux_x86/phOsalNfc.c
8206325bc6b3a60aed3c5cce157369ec2989437a 10-Apr-2012 Sunil Jogi <sunil.jogi@nxp.com> Added recovery function when SE wired mode selected

Added a recovery function with delay when SE wired mode selected.
This function will add extra delay before any abort when SE is in
wired mode. This will allow SE to complete any operation and do
not power off the SE immediately when wired mode transaction is on
going.
/external/libnfc-nxp/Linux_x86/phOsalNfc.c
a12acb119fa8cda91ca23d191b41b9438402e4d1 06-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/157220

Bug: 5449033
Change-Id: I935ee4450e2e62ced1537bafb787ad402cfcb69c
/external/libnfc-nxp/Linux_x86/phOsalNfc.c
1f23e48e59a9d8ba8bfd60c4a4de4fb656651200 20-Dec-2011 Steve Block <steveblock@google.com> Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/156016

Bug: 5449033
Change-Id: Ie5dac4fad8942433d2b8fe3c0539e4c3c678a082
/external/libnfc-nxp/Linux_x86/phOsalNfc.c
5ea62ad25e2050f543d8e2104f5ffc1bb2c1ef28 20-Oct-2011 Nick Pelly <npelly@google.com> Fixes to LLC and DAL to handle unreliable UART.

Use a 100ms timeout in uart_read() when reading LLC payload only.

Allow 200 retries on host.

Note that we use pn544 timeout retransmit instead of an explicit REJ
(do not use CRC_ERROR_REJ). The reason is that after a
dropped frame, a host timeout on read() is the only reliable way to recover
frame alignment, but if we send an immediate REJ then we are constantly reading
and can never regain frame alignment.

Also note that the pn544 timeout (200ms) is higher than the host (100ms). This
allows the host to abort a partial read and return to known state before the
pn544 re-transmits.

We have to turn off timeout for FW mode. Typical read time is ~100ms, but some
are 1 second+

Modify DAL & LLC layer to more reliably handle partial frames by searching for
a LLC length byte again, and log the various error paths.

Also introduce debugging tools:

debug.nfc.LOW_LEVEL_TRACES 2
Will enable LLC header decoding in the trace output.
Only read at NFC init time, use /data/local.prop to enable.

debug.nfc.UART_ERROR_RATE X
Will randomly inject errors at the uart transport, with a probability of X/1000
for every byte. 50% of those errors will be a dropped byte, 50% will be
corrupted. Recommend X=10. FW mode can't handle any errors. Can be enabled
after boot.

adb shell dumpsys nfc
Will now print the number of errors detected at the LLC layer.

Change-Id: I739ed193e3d4caa563a866b6a9d834c154917962
/external/libnfc-nxp/Linux_x86/phOsalNfc.c
fafed3cea5231f76bcebbe95b9d3b7c2ca69483d 24-Jun-2011 Nick Pelly <npelly@google.com> Improve LOW_LEVEL_TRACES logging.

Log ALL buffers (including size 1 and long buffers).
Use a more concise format.

This is helpful for debugging FW download failures.

Change-Id: I97370e8daf93ce851a036274ffa2856af05b6941
/external/libnfc-nxp/Linux_x86/phOsalNfc.c
d4cb91ee6f74f187cc0e7ba9dc073b0a77c27dfa 23-Jun-2011 Nick Pelly <npelly@google.com> Implement power control and firmware download for UART.

Also clean up some UART and I2C DAL functions.

o Re-enable FW download
o Use /system/vendor/firmware for pn544 firmware now
o Clean up read() and write() paths for both I2C and UART
o Use new sysfs entry for power and FW control on I2C platforms
o Remove userspace sleep()'s on power control toggle. They are now
done in the kernel as they should be.

Change-Id: I39956d36e02c1eb526a5c546bd3cb74edce4ff18
/external/libnfc-nxp/Linux_x86/phOsalNfc.c
c1f33130d9d2100e6232f8f3c782949c75205be6 21-Apr-2011 Daniel Tomas <dtomas.nxp@gmail.com> Patch to enable low level traces.

This patch permit to display the NFC frames exchanged through the I2C line.
To enable that, you just need to enable LOW_LEVEL_TRACES macro.

Change-Id: Ica2ff2e6d111b76c056161ec557346f23d21ada0
/external/libnfc-nxp/Linux_x86/phOsalNfc.c
bad5c194e18faa70ceb9608019d3c2cfa0d4f10c 03-Nov-2010 Daniel Tomas <daniel.tomas@trusted-logic.com> HCI timer enabled to HW reset NFC when HCI command times out.

Change-Id: Iee39957227fcdc8e97b520d22032dc97915323f3
Signed-off-by: Nick Pelly <npelly@google.com>
/external/libnfc-nxp/Linux_x86/phOsalNfc.c
0fb8aa8edcde194a1ac5e6116a6ce7ee374122b6 10-Oct-2010 goodsc.lee <goodsc.lee@samsung.com> STANDBY mode and Polling loop

Change-Id: Ib6563a94b29c7eb9de6615881eadbdf0e94994c8
S5PC11X: NFC: Enable the STANDBY mode and add enableDiscovery and disableDiscovery for polling loop.
/external/libnfc-nxp/Linux_x86/phOsalNfc.c
5d9927ba30ba449badb9f6df0fbeb4d6aedc6e2a 23-Sep-2010 Nick Pelly <npelly@google.com> Initial libnfc checkin

Source: Trusted_NFC_Device_Host_AA03.01e02_google.zip code drop (23-Sep-2010)

Change-Id: Ie47f18423f949a8d3e0815d13f55c814312add24
Signed-off-by: Nick Pelly <npelly@google.com>
/external/libnfc-nxp/Linux_x86/phOsalNfc.c