Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Christophe Ricard and committed by
Samuel Ortiz
0531107e 8e9466cc

+1 -1
+1 -1
drivers/nfc/st21nfca/i2c.c
··· 93 93 int hard_fault; 94 94 struct mutex phy_lock; 95 95 }; 96 - static u8 len_seq[] = { 13, 24, 15, 29 }; 96 + static u8 len_seq[] = { 16, 24, 12, 29 }; 97 97 static u16 wait_tab[] = { 2, 3, 5, 15, 20, 40}; 98 98 99 99 #define I2C_DUMP_SKB(info, skb) \