Răsfoiți Sursa

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 <j.uzycki@elproma.com.pl>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Janusz Użycki 11 ani în urmă
părinte
comite
a4780d039c
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      drivers/i2c/busses/i2c-mxs.c

+ 1 - 1
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);
 		ret = mxs_i2c_pio_wait_xfer_end(i2c);
 		if (ret) {
 		if (ret) {
 			dev_err(i2c->dev,
 			dev_err(i2c->dev,
-				"PIO: Failed to send SELECT command!\n");
+				"PIO: Failed to send READ command!\n");
 			goto cleanup;
 			goto cleanup;
 		}
 		}