Commit f9831bfe authored by Michael Thalmeier's avatar Michael Thalmeier Committed by Wolfram Sang

i2c: mxs: change error printing to debug for mxs_i2c_pio_wait_xfer_end

Instead of printing errors after mxs_i2c_pio_wait_xfer_end returns with
an error code just print a debug message.

NAKs and timeouts can occur in this situation normally, so do not treat
them as errors.
Signed-off-by: default avatarMichael Thalmeier <michael.thalmeier@hale.at>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 90b84c05
...@@ -419,7 +419,7 @@ static int mxs_i2c_pio_setup_xfer(struct i2c_adapter *adap, ...@@ -419,7 +419,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_dbg(i2c->dev,
"PIO: Failed to send SELECT command!\n"); "PIO: Failed to send SELECT command!\n");
goto cleanup; goto cleanup;
} }
...@@ -431,7 +431,7 @@ static int mxs_i2c_pio_setup_xfer(struct i2c_adapter *adap, ...@@ -431,7 +431,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_dbg(i2c->dev,
"PIO: Failed to send READ command!\n"); "PIO: Failed to send READ command!\n");
goto cleanup; goto cleanup;
} }
...@@ -528,7 +528,7 @@ static int mxs_i2c_pio_setup_xfer(struct i2c_adapter *adap, ...@@ -528,7 +528,7 @@ static int mxs_i2c_pio_setup_xfer(struct i2c_adapter *adap,
/* Wait for the end of the transfer. */ /* Wait for the end of the transfer. */
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_dbg(i2c->dev,
"PIO: Failed to finish WRITE cmd!\n"); "PIO: Failed to finish WRITE cmd!\n");
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment