NFC: Specify usage for targets found and target lost events
It is now specified that nfc_target_found() and nfc_target_lost() core functions must not be called from an atomic context. This allow us to serialize calls and protect the targets table using the nfc device lock instead of a spinlock. Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
addfabf98d
commit
d4ccb13280
@@ -97,7 +97,6 @@ struct nfc_dev {
|
||||
struct nfc_target *targets;
|
||||
int n_targets;
|
||||
int targets_generation;
|
||||
spinlock_t targets_lock;
|
||||
struct device dev;
|
||||
bool dev_up;
|
||||
bool polling;
|
||||
|
Reference in New Issue
Block a user