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)
commit8e9466ccda297c0844a606910152787ce9133b24
tree722839a3d90c00dceff70da306c65b0863609809
parentcf577344e2ece0798046402fd88472473c6e7ee8
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