[PATCH] i2c-mxs: detect No Slave Ack on SELECT in PIO mode

2014-09-23 Thread Janusz Uzycki
ue on SDA wire Signed-off-by: Janusz Uzycki --- drivers/i2c/busses/i2c-mxs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/i2c/busses/i2c-mxs.c b/drivers/i2c/busses/i2c-mxs.c index 87ee72d..f3c4a43 100644 --- a/drivers/i2c/busses/i2c-mxs.c +++ b/drivers/i2c/busses/i2c-mxs.c @@ -

[PATCH] i2c-mxs: detect No Slave Ack on SELECT in PIO mode

2014-09-10 Thread Janusz Uzycki
returns to the idle state. This bit is set to indicate that an interrupt is requested by the I2C controller because the slave addressed by a master transfer did not respond with an acknowledge. Signed-off-by: Janusz Uzycki --- drivers/i2c/busses/i2c-mxs.c | 4 1 file changed, 4 insertions(+)

[PATCH] i2c-mxs: fixed error message in pio transfer

2014-09-09 Thread Janusz Uzycki
If I2C_M_RD flag is set SELECT command is sent and afterward READ command. The patch fixes READ command to return READ failure error message instead of SELECT failure error message. Signed-off-by: Janusz Uzycki --- drivers/i2c/busses/i2c-mxs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH] i2c-mxs: fixed PIO NACK error instead of timeout (1000ms)

2014-09-09 Thread Janusz Uzycki
i2cdetect scanned i2c bus very slow if address was not occupied by any device. Signed-off-by: Janusz Uzycki --- drivers/i2c/busses/i2c-mxs.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/i2c/busses/i2c-mxs.c b/drivers/i2c/busses/i2c-mxs.c index 87ee72d..35ae448 100644 --- a