]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
i2c: mxs: change error printing to debug for mxs_i2c_pio_wait_xfer_end
authorMichael Thalmeier <michael.thalmeier@hale.at>
Wed, 31 May 2017 09:40:03 +0000 (11:40 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 2 Jun 2017 20:57:14 +0000 (22:57 +0200)
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: Michael Thalmeier <michael.thalmeier@hale.at>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-mxs.c

index 5738556b6aac20cb45f7c3060aa634de379f5b8e..d4e8f1954f23f48d0f5a5e6f47100783dbc8853d 100644 (file)
@@ -419,7 +419,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,
+                       dev_dbg(i2c->dev,
                                "PIO: Failed to send SELECT command!\n");
                        goto cleanup;
                }
@@ -431,7 +431,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,
+                       dev_dbg(i2c->dev,
                                "PIO: Failed to send READ command!\n");
                        goto cleanup;
                }
@@ -528,7 +528,7 @@ static int mxs_i2c_pio_setup_xfer(struct i2c_adapter *adap,
                        /* Wait for the end of the transfer. */
                        ret = mxs_i2c_pio_wait_xfer_end(i2c);
                        if (ret) {
-                               dev_err(i2c->dev,
+                               dev_dbg(i2c->dev,
                                        "PIO: Failed to finish WRITE cmd!\n");
                                break;
                        }