i2c: tegra: Reduce number of warning messages for i2c errors
Chaitanya Bandi [Thu, 4 Oct 2012 09:53:32 +0000 (14:53 +0530)]
Reduced the number of warning messages for I2C errors
by changing a few from warning level to debug level.

Bug 1057022

Reviewed-on: http://git-master/r/141523
(cherry picked from commit aa96bee7f31a37c450315de78d65950114638218)

Change-Id: I42060b12592fade548981f8e987c5daf07e9ba00
Signed-off-by: rrajk <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/146442
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

drivers/i2c/busses/i2c-tegra.c

index 5ff788c..15e3bca 100644 (file)
@@ -587,12 +587,12 @@ static irqreturn_t tegra_i2c_isr(int irq, void *dev_id)
        }
 
        if (unlikely(status & status_err)) {
-               dev_warn(i2c_dev->dev, "I2c error status 0x%08x\n", status);
+               dev_dbg(i2c_dev->dev, "I2c error status 0x%08x\n", status);
                if (status & I2C_INT_NO_ACK) {
                        i2c_dev->msg_err |= I2C_ERR_NO_ACK;
                        dev_warn(i2c_dev->dev, "no acknowledge from address"
                                        " 0x%x\n", i2c_dev->msg_add);
-                       dev_warn(i2c_dev->dev, "Packet status 0x%08x\n",
+                       dev_dbg(i2c_dev->dev, "Packet status 0x%08x\n",
                                i2c_readl(i2c_dev, I2C_PACKET_TRANSFER_STATUS));
                }
 
@@ -600,7 +600,7 @@ static irqreturn_t tegra_i2c_isr(int irq, void *dev_id)
                        i2c_dev->msg_err |= I2C_ERR_ARBITRATION_LOST;
                        dev_warn(i2c_dev->dev, "arbitration lost during "
                                " communicate to add 0x%x\n", i2c_dev->msg_add);
-                       dev_warn(i2c_dev->dev, "Packet status 0x%08x\n",
+                       dev_dbg(i2c_dev->dev, "Packet status 0x%08x\n",
                                i2c_readl(i2c_dev, I2C_PACKET_TRANSFER_STATUS));
                }
 
@@ -608,7 +608,7 @@ static irqreturn_t tegra_i2c_isr(int irq, void *dev_id)
                        i2c_dev->msg_err |= I2C_INT_TX_FIFO_OVERFLOW;
                        dev_warn(i2c_dev->dev, "Tx fifo overflow during "
                                " communicate to add 0x%x\n", i2c_dev->msg_add);
-                       dev_warn(i2c_dev->dev, "Packet status 0x%08x\n",
+                       dev_dbg(i2c_dev->dev, "Packet status 0x%08x\n",
                                i2c_readl(i2c_dev, I2C_PACKET_TRANSFER_STATUS));
                }
                goto err;