diff options
author | Christophe Ricard <christophe.ricard@gmail.com> | 2014-11-13 00:30:36 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2014-12-02 02:01:21 +0100 |
commit | 93bca2bfa4b79b689603b56feeea0ebed2842cbe (patch) | |
tree | d0479cb079628f90d563d039b7e4ea253e3a479b /net/nfc | |
parent | ba4db551bb48943bcebdacc30219d35a1248de11 (diff) | |
download | op-kernel-dev-93bca2bfa4b79b689603b56feeea0ebed2842cbe.zip op-kernel-dev-93bca2bfa4b79b689603b56feeea0ebed2842cbe.tar.gz |
NFC: nci: Update nci_enable_se to run proprietary commands to enable a secure element
Some NFC controller using NCI protocols may need a proprietary commands
flow to enable a secure element
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc')
-rw-r--r-- | net/nfc/nci/core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/nfc/nci/core.c b/net/nfc/nci/core.c index 4044973..6c36ec6 100644 --- a/net/nfc/nci/core.c +++ b/net/nfc/nci/core.c @@ -746,6 +746,11 @@ static int nci_tm_send(struct nfc_dev *nfc_dev, struct sk_buff *skb) static int nci_enable_se(struct nfc_dev *nfc_dev, u32 se_idx) { + struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); + + if (ndev->ops->enable_se) + return ndev->ops->enable_se(ndev, se_idx); + return 0; } |