]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
NFC: st21nfca: Implement stop_poll HCI hook
authorChristophe Ricard <christophe.ricard@gmail.com>
Tue, 20 May 2014 20:21:58 +0000 (22:21 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 22 Jul 2014 23:04:31 +0000 (01:04 +0200)
commitd57d74eb7626a2aeefad47a8d4246e9daf2199f5
tree5add8166cd09ff61e5de6d48b8ca08b9ea6b50b6
parent95f7687b209954a8ec94b4974d14fdff005ebaac
NFC: st21nfca: Implement stop_poll HCI hook

Send DM_DISCONNECT command to disconnect Terminal Host from the HCI network.

- The persistent states of the terminal host pipes, including registry values,
are not modifies. Therefore, there is no NVRAM update to disconnect the
terminal host.
- The terminal host RF card gates are disabled which means that there will be no event
related to card RF gates until communication has been restored.
- The terminal host RF reader request is reset so the RF reader polling for terminal
host is disabled.

To restore the communication, the terminal host can send any HCI command or event.

Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/st21nfca/st21nfca.c