Skip to content

Commit 0531107

Browse files
cricard13Samuel Ortiz
authored andcommitted
NFC: st21nfca: Improve read length sequence for P2P mode.
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>
1 parent 8e9466c commit 0531107

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/nfc/st21nfca

‎drivers/nfc/st21nfca/i2c.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ struct st21nfca_i2c_phy {
9393
int hard_fault;
9494
struct mutex phy_lock;
9595
};
96-
static u8 len_seq[] = { 13, 24, 15, 29 };
96+
static u8 len_seq[] = { 16, 24, 12, 29 };
9797
static u16 wait_tab[] = { 2, 3, 5, 15, 20, 40};
9898

9999
#define I2C_DUMP_SKB(info, skb) \

0 commit comments

Comments
 (0)