OSDN Git Service

NFC: Modified hci_transceive to become an asynchronous operation
authorEric Lapuyade <eric.lapuyade@linux.intel.com>
Tue, 11 Sep 2012 08:43:50 +0000 (10:43 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 24 Sep 2012 22:17:25 +0000 (00:17 +0200)
commitf3e8fb552789f4845e60b11c47b676d14b9488e5
tree8fde55db141d361952cbb190d9e59231e143157b
parente4c4789e55327e5f2bd6cafcccd46f9b6251bbc3
NFC: Modified hci_transceive to become an asynchronous operation

This enables the completion callback to be called from a different
context, preventing a possible deadlock if the callback resulted in the
invocation of a nested call to the currently locked nfc_dev.
This is also more in line with the im_transceive nfc_ops for NFC Core or
NCI drivers which already behave asynchronously.

Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/pn544_hci.c
include/net/nfc/hci.h
include/net/nfc/shdlc.h
net/nfc/hci/core.c
net/nfc/hci/shdlc.c