From: Christophe Ricard Date: Tue, 25 Mar 2014 05:51:50 +0000 (+0100) Subject: NFC: st21nfca: Implement load_session HCI hook X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~122^2^2~18^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58e1e0a920358cd0dd7fdccc8cbcaa1d117078cf;p=pandora-kernel.git NFC: st21nfca: Implement load_session HCI hook This implementation rely on the ST21NFCA_DEVICE_MGNT_GATE and ST21NFCA_DM_GETINFO proprietary gates commands. First we are retrieving a pipe list available on the CLF with the ST21NFCA_DM_GETINFO_PIPE_LIST parameter. A gate<->pipe table match is done with ST21NFCA_DM_GETINFO_PIPE_INFO for each pipe. If the pipe is created and open, we fill st21nfca_gates table. If the pipe is create but closed or is not created we keep the gate with NFC_HCI_INVALID_PIPE. Signed-off-by: Christophe Ricard Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed