Skip to content

Commit

Permalink
i2c: mxs: fix error message in pio transfer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Janusz Użycki authored and Wolfram Sang committed Sep 20, 2014
1 parent 979bbf7 commit a4780d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-mxs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a4780d0

Please sign in to comment.