]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: st21nfcb: Fix logic when running into i2c read retry
authorChristophe Ricard <christophe.ricard@gmail.com>
Wed, 3 Sep 2014 21:30:26 +0000 (23:30 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 7 Sep 2014 22:29:50 +0000 (00:29 +0200)
commite8a3800da976638527825dc5b5023bda5daaecad
treef1406c1dac972c3911d7f5666155c8332b7b6928
parent018b6f2737357a7a1a3bed173ab1d5767d7978f0
NFC: st21nfcb: Fix logic when running into i2c read retry

When retrying to read the NCI header, the CLF might not be
available the first time. However it may not be successful
the second time and this may cause an error in the function.
Enforce the retrieve data length is as expected.

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