2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-15 00:34:10 +08:00
linux-next/net/nfc
Frederic Danis 391d8a2da7 NFC: Add NCI over SPI receive
Before any operation, driver interruption is de-asserted to prevent
race condition between TX and RX.

Transaction starts by emitting "Direct read" and acknowledged mode
bytes. Then packet length is read allowing to allocate correct NCI
socket buffer. After that payload is retrieved.

A delay after the transaction can be added.
This delay is determined by the driver during nci_spi_allocate_device()
call and can be 0.

If acknowledged mode is set:
- CRC of header and payload is checked
- if frame reception fails (CRC error): NACK is sent
- if received frame has ACK or NACK flag: unblock nci_spi_send()

Payload is passed to NCI module.

At the end, driver interruption is re asserted.

Signed-off-by: Frederic Danis <frederic.danis@linux.intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2013-06-14 13:44:16 +02:00
..
hci NFC: HCI: Follow a positive code path in the HCI ops implementations 2013-06-14 00:26:10 +02:00
nci NFC: Add NCI over SPI receive 2013-06-14 13:44:16 +02:00
af_nfc.c NFC: Core code identation fixes 2012-03-06 15:16:25 -05:00
core.c NFC: Add firmware upload netlink command 2013-06-14 00:26:08 +02:00
Kconfig NFC: Add missing RFKILL dependency for Kconfig 2013-04-27 01:02:46 +02:00
llcp_commands.c NFC: Move LLCP code to the NFC top level diirectory 2013-04-26 12:37:28 +02:00
llcp_core.c NFC: Move LLCP code to the NFC top level diirectory 2013-04-26 12:37:28 +02:00
llcp_sock.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2013-04-30 03:55:20 -04:00
llcp.h NFC: Move LLCP code to the NFC top level diirectory 2013-04-26 12:37:28 +02:00
Makefile NFC: Remove commented out LLCP related Makefile line 2013-05-21 10:47:41 +02:00
netlink.c NFC: Add firmware upload netlink command 2013-06-14 00:26:08 +02:00
nfc.h NFC: Add firmware upload netlink command 2013-06-14 00:26:08 +02:00
rawsock.c NFC: Fix some code style and whitespace issues 2012-10-26 18:26:52 +02:00