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/nci
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
..
core.c NFC: NCI: Fix skb->dev usage 2013-06-14 00:25:53 +02:00
data.c NFC: NCI: Fix skb->dev usage 2013-06-14 00:25:53 +02:00
Kconfig NFC: Add basic NCI over SPI 2013-06-14 13:44:03 +02:00
lib.c NFC: Include nci_core.h to nci/lib.c 2012-05-15 17:30:29 -04:00
Makefile NFC: Add basic NCI over SPI 2013-06-14 13:44:03 +02:00
ntf.c NFC: Implement NCI dep_link_up and dep_link_down 2012-09-25 00:17:23 +02:00
rsp.c NFC: Set local general bytes in nci_start_poll 2012-09-25 00:17:23 +02:00
spi.c NFC: Add NCI over SPI receive 2013-06-14 13:44:16 +02:00