aboutsummaryrefslogtreecommitdiffstats
path: root/net/nfc
diff options
context:
space:
mode:
authorThierry Escande <thierry.escande@collabora.com>2016-06-23 11:20:26 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2016-07-04 12:36:30 +0200
commit204bddcb508fe3bca5c97a9f528bafd7ba8fcec8 (patch)
tree6d52eb415618a4e44331326c52e7837b15e29f38 /net/nfc
parentNFC: llcp: Use dynamic debug for hex dump (diff)
downloadlinux-dev-204bddcb508fe3bca5c97a9f528bafd7ba8fcec8.tar.xz
linux-dev-204bddcb508fe3bca5c97a9f528bafd7ba8fcec8.zip
NFC: nfcsim: Make use of the Digital layer
With this complete rewrite, the loopback nfcsim driver now relies on the Digital layer of the nfc stack. As with the previous version, 2 nfc devices are declared when the driver is initialized. The driver supports the NFC_DEP protocol in NFC-A and NFC-F technologies. The 2 devices are using a pair of virtual links for sk_buff exchange. The out-link of one device is the in-link of the other and conversely. To receive data, a device calls nfcsim_link_recv_skb() on its in-link and waits for incoming data on a wait queue. To send data, a device calls nfcsim_link_send_skb() on its out-link which stores the passed skb and signals its wait queue. If the peer device was in the nfcsim_link_recv_skb() call, it will be signaled and will be able to pass the received sk_buff up to the Digital layer. Signed-off-by: Thierry Escande <thierry.escande@collabora.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc')
0 files changed, 0 insertions, 0 deletions