]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: st21nfca: Improved start of frame detection
authorChristophe Ricard <christophe.ricard@gmail.com>
Tue, 20 May 2014 20:21:55 +0000 (22:21 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 22 Jul 2014 23:04:31 +0000 (01:04 +0200)
commit3350ad6d5e66f611d9e33d8cc48f72e410b66fcf
tree722839a3d90c00dceff70da306c65b0863609809
parent3b61bcc3ca2ed06e2f34216422351c663eac62ff
NFC: st21nfca: Improved start of frame detection

A start of frame is 7E 00 not only 7E. Make sure the first read sequence is
starting with 7E 00.
For example: 7E FF FF FF FF is as a correct crc but it is a bad frame.

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