diff options
| author | Michael Thalmeier <michael.thalmeier@hale.at> | 2017-05-31 05:40:03 -0400 |
|---|---|---|
| committer | Wolfram Sang <wsa@the-dreams.de> | 2017-06-02 16:57:14 -0400 |
| commit | f9831bfec7414d8f54f064b6b21de0685f107a47 (patch) | |
| tree | 81678ac93c8940cb46098fcef08f04a6a6a54be4 /drivers | |
| parent | 90b84c057414cbcca53337c64afc348541989d7d (diff) | |
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: Michael Thalmeier <michael.thalmeier@hale.at>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/i2c/busses/i2c-mxs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/i2c/busses/i2c-mxs.c b/drivers/i2c/busses/i2c-mxs.c index 5738556b6aac..d4e8f1954f23 100644 --- a/drivers/i2c/busses/i2c-mxs.c +++ b/drivers/i2c/busses/i2c-mxs.c | |||
| @@ -419,7 +419,7 @@ static int mxs_i2c_pio_setup_xfer(struct i2c_adapter *adap, | |||
| 419 | 419 | ||
| 420 | ret = mxs_i2c_pio_wait_xfer_end(i2c); | 420 | ret = mxs_i2c_pio_wait_xfer_end(i2c); |
| 421 | if (ret) { | 421 | if (ret) { |
| 422 | dev_err(i2c->dev, | 422 | dev_dbg(i2c->dev, |
| 423 | "PIO: Failed to send SELECT command!\n"); | 423 | "PIO: Failed to send SELECT command!\n"); |
| 424 | goto cleanup; | 424 | goto cleanup; |
| 425 | } | 425 | } |
| @@ -431,7 +431,7 @@ static int mxs_i2c_pio_setup_xfer(struct i2c_adapter *adap, | |||
| 431 | 431 | ||
| 432 | ret = mxs_i2c_pio_wait_xfer_end(i2c); | 432 | ret = mxs_i2c_pio_wait_xfer_end(i2c); |
| 433 | if (ret) { | 433 | if (ret) { |
| 434 | dev_err(i2c->dev, | 434 | dev_dbg(i2c->dev, |
| 435 | "PIO: Failed to send READ command!\n"); | 435 | "PIO: Failed to send READ command!\n"); |
| 436 | goto cleanup; | 436 | goto cleanup; |
| 437 | } | 437 | } |
| @@ -528,7 +528,7 @@ static int mxs_i2c_pio_setup_xfer(struct i2c_adapter *adap, | |||
| 528 | /* Wait for the end of the transfer. */ | 528 | /* Wait for the end of the transfer. */ |
| 529 | ret = mxs_i2c_pio_wait_xfer_end(i2c); | 529 | ret = mxs_i2c_pio_wait_xfer_end(i2c); |
| 530 | if (ret) { | 530 | if (ret) { |
| 531 | dev_err(i2c->dev, | 531 | dev_dbg(i2c->dev, |
| 532 | "PIO: Failed to finish WRITE cmd!\n"); | 532 | "PIO: Failed to finish WRITE cmd!\n"); |
| 533 | break; | 533 | break; |
| 534 | } | 534 | } |
