[COMMON] i2c: s3c2410: release debug log in I2C driver
authorYoungmin Nam <youngmin.nam@samsung.com>
Mon, 21 Nov 2016 06:48:17 +0000 (15:48 +0900)
committermyung-su.cha <myung-su.cha@samsung.com>
Thu, 10 May 2018 04:40:58 +0000 (13:40 +0900)
Change-Id: Id899e7184d676357e268792a6ab3d25eb834be7a
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
drivers/i2c/busses/i2c-s3c2410.c

index d9a0149482f5b4ff14e1edd6d9d86ef77675e60f..e52a35257e7f4b6defe809d4841f3fc824ef4aa3 100644 (file)
@@ -464,7 +464,7 @@ static int i2c_s3c_irq_nextbyte(struct s3c24xx_i2c *i2c, unsigned long iicstat)
                    !(i2c->msg->flags & I2C_M_IGNORE_NAK)) {
                        /* ack was not received... */
 
-                       dev_dbg(i2c->dev, "ack was not received\n");
+                       dev_err(i2c->dev, "ack was not received\n");
                        s3c24xx_i2c_stop(i2c, -ENXIO);
                        goto out_ack;
                }
@@ -813,9 +813,9 @@ static int s3c24xx_i2c_doxfer(struct s3c24xx_i2c *i2c,
         * noisy when doing an i2cdetect */
 
        if (timeout == 0)
-               dev_dbg(i2c->dev, "timeout\n");
+               dev_err(i2c->dev, "timeout\n");
        else if (ret != num)
-               dev_dbg(i2c->dev, "incomplete xfer (%d)\n", ret);
+               dev_err(i2c->dev, "incomplete xfer (%d)\n", ret);
 
        /* For QUIRK_HDMIPHY, bus is already disabled */
        if (i2c->quirks & QUIRK_HDMIPHY)