]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: nci: Allow the driver to set handler for core nci ops
authorRobert Dolca <robert.dolca@intel.com>
Thu, 22 Oct 2015 09:11:38 +0000 (12:11 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 25 Oct 2015 18:12:57 +0000 (19:12 +0100)
commit2174bf78f25d78d2debce9df9d361546ea17c5e8
treec9f980a8390536964381099a45f73e604a59ee74
parent959429991b7a1d0e5116b9afbe0131d3ae872cb5
NFC: nci: Allow the driver to set handler for core nci ops

The driver may be required to act when some responses or
notifications arrive. For example the NCI core does not have a
handler for NCI_OP_CORE_GET_CONFIG_RSP. The NFCC can send a
config response that has to be read by the driver and the packet
may contain vendor specific data.

The Fields Peak driver needs to take certain actions when a reset
notification arrives (packet also not handled by the nfc core).

The driver handlers do not interfere with the core and they are
called after the core processes the packet.

Signed-off-by: Robert Dolca <robert.dolca@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
include/net/nfc/nci_core.h
net/nfc/nci/core.c
net/nfc/nci/ntf.c
net/nfc/nci/rsp.c