linux/drivers/nfc/nxp-nci
Fabio Estevam 59df9bb25c nxp-nci: i2c: Do not check specifically for -EREMOTEIO error
Function nxp_nci_i2c_write currently assumes in case of
I2C bus NACK that the NFC device is in stand-by mode and
will retry the I2C transaction after a pause. This assumes
that the first failed I2C transaction will wake-up the device.

This is done by checking on EREMOTEIO, which is wrong. According
to Documentation/i2c/fault-codes ENXIO shall be used. Unfortunately
the NOACK return code is currently inconsistent across various I2C
host controller drivers. So only check for the generic error case
instead.

This is a temporary fix. As soon as all I2C bus master drivers are
fixed to consistently return 'ENXIO', then we can do the specific
error check again.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2015-11-18 02:30:49 +01:00
..
core.c NFC: nxp-nci: constify nxp_nci_phy_ops structure 2015-10-19 20:04:13 +02:00
firmware.c NFC: nxp-nci: Release firmware when switching to FW mode fails 2015-04-06 00:58:51 +02:00
i2c.c nxp-nci: i2c: Do not check specifically for -EREMOTEIO error 2015-11-18 02:30:49 +01:00
Kconfig
Makefile NFC: Remove obsolete setting of DEBUG 2015-06-09 00:34:09 +02:00
nxp-nci.h NFC: nxp-nci: constify nxp_nci_phy_ops structure 2015-10-19 20:04:13 +02:00