]> git.baikalelectronics.ru Git - kernel.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)
commit0590c2a93cebb041fc8a439ad17f5671b78adee7
tree5add8166cd09ff61e5de6d48b8ca08b9ea6b50b6
parent2a91ad52f6c12a8c7b64e615bbb5e4df397d633f
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