]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf1156dda9104d167563bf11a209c31d2ecd861ce
tree8fde55db141d361952cbb190d9e59231e143157b
parentf77ca5879e9ef3623b6d79764c809cd8fbe44652
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