linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] i2c-mxs: fixed error message in pio transfer
@ 2014-09-09 16:19 Janusz Uzycki
       [not found] ` <1410279571-4552-1-git-send-email-j.uzycki-9tnw74Q4ehaHKKo6LODCOg@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Janusz Uzycki @ 2014-09-09 16:19 UTC (permalink / raw)
  To: marex-ynQEQJNshbs
  Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA, wsa-z923LK4zBo2bacvFa/9K2g,
	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 <j.uzycki-9tnw74Q4ehaHKKo6LODCOg@public.gmane.org>
---
 drivers/i2c/busses/i2c-mxs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i2c/busses/i2c-mxs.c b/drivers/i2c/busses/i2c-mxs.c
index 0cde4e6..87ee72d 100644
--- a/drivers/i2c/busses/i2c-mxs.c
+++ b/drivers/i2c/busses/i2c-mxs.c
@@ -429,7 +429,7 @@ static int mxs_i2c_pio_setup_xfer(struct i2c_adapter *adap,
 		ret = mxs_i2c_pio_wait_xfer_end(i2c);
 		if (ret) {
 			dev_err(i2c->dev,
-				"PIO: Failed to send SELECT command!\n");
+				"PIO: Failed to send READ command!\n");
 			goto cleanup;
 		}
 
-- 
1.7.11.3

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-09-22 15:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-09 16:19 [PATCH] i2c-mxs: fixed error message in pio transfer Janusz Uzycki
     [not found] ` <1410279571-4552-1-git-send-email-j.uzycki-9tnw74Q4ehaHKKo6LODCOg@public.gmane.org>
2014-09-09 16:19   ` [PATCH] i2c-mxs: fixed PIO NACK error instead of timeout (1000ms) Janusz Uzycki
     [not found]     ` <1410279571-4552-2-git-send-email-j.uzycki-9tnw74Q4ehaHKKo6LODCOg@public.gmane.org>
2014-09-09 18:56       ` Marek Vasut
2014-09-20 12:49       ` Wolfram Sang
2014-09-20 13:22         ` Marek Vasut
     [not found]           ` <201409201522.00331.marex-ynQEQJNshbs@public.gmane.org>
2014-09-22 15:56             ` Wolfram Sang
2014-09-20 12:39   ` [PATCH] i2c-mxs: fixed error message in pio transfer Wolfram Sang
2014-09-20 13:21     ` Marek Vasut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).