There is currently no way for userspace to deactivate an active target. Since the target is active, the adapter cannot be powered down which wastes wastes power when the target has been read and isn't needed anymore (but remains within range). To solve this, add a way to deactivate a currently active target which will then allow the adapter to be powered down. To be fully operational, this requires companion patches for neard. Those patches will be submitted shortly. Mark Greer (2): NFC: digital: Abort cmd when deactivating target NFC: Add NFC_CMD_DEACTIVATE_TARGET support include/uapi/linux/nfc.h | 2 ++ net/nfc/digital_core.c | 1 + net/nfc/netlink.c | 29 +++++++++++++++++++++++++++++ 3 files changed, 32 insertions(+) -- 2.13.0