From: Janusz Użycki Date: Tue, 9 Sep 2014 16:19:30 +0000 (+0200) Subject: i2c: mxs: fix error message in pio transfer X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a4780d039ca5c3ef318db084f1bfc6ebed6876c8;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git i2c: mxs: fix error message in pio transfer 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 Acked-by: Marek Vasut Signed-off-by: Wolfram Sang --- diff --git a/drivers/i2c/busses/i2c-mxs.c b/drivers/i2c/busses/i2c-mxs.c index 7170fc892829..65a21fed08b5 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; }