i2c: mxs: fix error message in pio transfer
authorJanusz Użycki <j.uzycki@elproma.com.pl>
Tue, 9 Sep 2014 16:19:30 +0000 (18:19 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 20 Sep 2014 12:58:19 +0000 (14:58 +0200)
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@elproma.com.pl>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-mxs.c

index 7170fc8928293a1cfccdb0704c274d4705b4b1de..65a21fed08b5223dbccbe76296082e98314505ba 100644 (file)
@@ -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;
                }