i2c: tegra: remove printout on handled timeouts
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 10 Apr 2024 11:24:30 +0000 (13:24 +0200)
committerAndi Shyti <andi.shyti@kernel.org>
Sun, 5 May 2024 22:56:37 +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>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-tegra.c

index 920d5a8cbf4c753b316d2256caeadc319246581e..85b31edc558dff21a54120ea2f8b01e3dd8a3f00 100644 (file)
@@ -1331,7 +1331,6 @@ static int tegra_i2c_xfer_msg(struct tegra_i2c_dev *i2c_dev,
                dmaengine_terminate_sync(i2c_dev->dma_chan);
 
                if (!time_left && !completion_done(&i2c_dev->dma_complete)) {
-                       dev_err(i2c_dev->dev, "DMA transfer timed out\n");
                        tegra_i2c_init(i2c_dev);
                        return -ETIMEDOUT;
                }
@@ -1351,7 +1350,6 @@ static int tegra_i2c_xfer_msg(struct tegra_i2c_dev *i2c_dev,
        tegra_i2c_mask_irq(i2c_dev, int_mask);
 
        if (time_left == 0) {
-               dev_err(i2c_dev->dev, "I2C transfer timed out\n");
                tegra_i2c_init(i2c_dev);
                return -ETIMEDOUT;
        }