NFC: nfcmrvl: set PB_BAIL_OUT at setup
authorVincent Cuissard <cuissard@marvell.com>
Fri, 12 Jun 2015 13:35:54 +0000 (15:35 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 12 Jun 2015 22:08:55 +0000 (00:08 +0200)
PB_BAIL_OUT parameter as to be set to one. This is needed because
digital protocol 1.0 is used in combination with ISO15693 protocol.

Signed-off-by: Vincent Cuissard <cuissard@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/nfcmrvl/main.c
drivers/nfc/nfcmrvl/nfcmrvl.h

index 54ed8ac..4a8866d 100644 (file)
@@ -82,6 +82,9 @@ static int nfcmrvl_nci_send(struct nci_dev *ndev, struct sk_buff *skb)
 
 static int nfcmrvl_nci_setup(struct nci_dev *ndev)
 {
+       __u8 val = 1;
+
+       nci_set_config(ndev, NFCMRVL_PB_BAIL_OUT, 1, &val);
        return 0;
 }
 
index 09780d5..e5a7e54 100644 (file)
 #define NFCMRVL_NCI_MAX_EVENT_SIZE             260
 
 /*
+** NCI FW Parmaters
+*/
+
+#define NFCMRVL_PB_BAIL_OUT                    0x11
+
+/*
 ** HCI defines
 */