NFC: st21nfcb: Retry i2c_master_send if it returns a negative value
authorChristophe Ricard <christophe.ricard@gmail.com>
Tue, 31 Mar 2015 06:02:15 +0000 (08:02 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 5 Apr 2015 22:16:01 +0000 (00:16 +0200)
commitd4a41d10b2cb5890aeda6b2912973b2a754b05b1
tree2fbff7db8ce08da1d6791138f88e79338b90c276
parent2ca21002798a1a88196a90f407b80df3a25c69dc
NFC: st21nfcb: Retry i2c_master_send if it returns a negative value

i2c_master_send may return many negative values different than
-EREMOTEIO.
In case an i2c transaction is NACK'ed, on raspberry pi B+
kernel 3.18, -EIO is generated instead.

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