i2c: nomadik: remove printout on handled timeouts
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 10 Apr 2024 11:24:23 +0000 (13:24 +0200)
committerAndi Shyti <andi.shyti@kernel.org>
Sun, 5 May 2024 22:56:34 +0000 (00:56 +0200)
I2C and SMBus timeouts are not something the user needs to be informed
about on controller level. The client driver may know if that really is
a problem and give more detailed information to the user. The controller
should just pass this information upwards. Remove the printout.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-nomadik.c

index 4f41a3c7824d062d7044777013a28ad25c5f324b..45c6df26fcbf636364e97ba3acd1b42e0aa6acce 100644 (file)
@@ -542,12 +542,9 @@ static int read_i2c(struct nmk_i2c_dev *priv, u16 flags)
 
        xfer_done = nmk_i2c_wait_xfer_done(priv);
 
-       if (!xfer_done) {
-               /* Controller timed out */
-               dev_err(&priv->adev->dev, "read from slave 0x%x timed out\n",
-                       priv->cli.slave_adr);
+       if (!xfer_done)
                status = -ETIMEDOUT;
-       }
+
        return status;
 }