linux-kernel-test/drivers/nfc
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
..
fdp NFC: Add Intel Fields Peak NFC solution driver 2015-10-25 20:29:16 +01:00
microread char/misc drivers for 4.4-rc1 2015-11-04 22:15:15 -08:00
nfcmrvl NFC: nfcmrvl: avoid being stuck on FW dnld timeout 2015-11-05 00:32:25 +01:00
nxp-nci nxp-nci: i2c: Do not check specifically for -EREMOTEIO error 2015-11-18 02:30:49 +01:00
pn544 char/misc drivers for 4.4-rc1 2015-11-04 22:15:15 -08:00
s3fwrn5 NFC: nci: rename nci_prop_ops to nci_driver_ops 2015-10-25 20:28:59 +01:00
st21nfca NFC: st21nfca: Add support for proprietary commands 2015-10-27 04:00:24 +01:00
st-nci spi: Updates for v4.4 2015-11-05 13:15:12 -08:00
Kconfig NFC: Add Intel Fields Peak NFC solution driver 2015-10-25 20:29:16 +01:00
Makefile NFC: Add Intel Fields Peak NFC solution driver 2015-10-25 20:29:16 +01:00
mei_phy.c mei: bus: use mei_cldev_ prefix for the API functions 2015-09-20 19:31:10 -07:00
mei_phy.h mei: bus: complete variable rename of type struct mei_cl_device 2015-09-20 19:31:09 -07:00
nfcsim.c NFC: netlink: Add mode parameter to deactivate_target functions 2015-10-27 03:55:12 +01:00
nfcwilink.c NFC: nfcwilink: Drop a useless static qualifier 2015-10-19 20:06:13 +02:00
pn533.c NFC: netlink: Add mode parameter to deactivate_target functions 2015-10-27 03:55:12 +01:00
port100.c NFC: logging neatening 2015-04-07 12:05:12 +02:00
trf7970a.c spi: Updates for v4.4 2015-11-05 13:15:12 -08:00