]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
NFC: st21nfca: Improve read length sequence for P2P mode.
authorChristophe Ricard <christophe.ricard@gmail.com>
Tue, 20 May 2014 20:21:56 +0000 (22:21 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 22 Jul 2014 23:04:31 +0000 (01:04 +0200)
A DEP_RES with a SUPERVISOR PDU can be up to 16 bytes long.

In order to avoid useless read during p2p, extend first read
sequence to 16 and reduce third sequence to 12 to keep same
total on the full sequence.

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

index 70564b3f2ab2db09665104c91f4fb5f3ea3a44b1..ff31939978ae595713fea28e9bbd8f153fc4640c 100644 (file)
@@ -93,7 +93,7 @@ struct st21nfca_i2c_phy {
        int hard_fault;
        struct mutex phy_lock;
 };
-static u8 len_seq[] = { 13, 24, 15, 29 };
+static u8 len_seq[] = { 16, 24, 12, 29 };
 static u16 wait_tab[] = { 2, 3, 5, 15, 20, 40};
 
 #define I2C_DUMP_SKB(info, skb)                                        \