]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
i2c: qup: Remove verbose messages.
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Wed, 9 Dec 2015 10:42:27 +0000 (10:42 +0000)
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 11 Jan 2016 09:54:58 +0000 (09:54 +0000)
This patch moves some of the dev_err messages to dev_dgb as these are
very normal messages, nothing unusual. Without this patch the messages
on console are very distracting when we run programs like i2cdetect.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
drivers/i2c/busses/i2c-qup.c

index 810b021c7ea0a267f6afd958c307e5cbd096ca88..a944f5c6d9979a49eef37d2604d17643d16babcd 100644 (file)
@@ -449,7 +449,7 @@ static int qup_i2c_send_data(struct qup_i2c_dev *qup, int tlen, u8 *tbuf,
                ret = qup_i2c_wait_ready(qup, QUP_OUT_FULL,
                                         RESET_BIT, 4 * ONE_BYTE);
                if (ret) {
-                       dev_err(qup->dev, "timeout for fifo out full");
+                       dev_dbg(qup->dev, "timeout for fifo out full");
                        return ret;
                }
 
@@ -565,7 +565,7 @@ static int qup_i2c_wait_for_complete(struct qup_i2c_dev *qup,
 
        if (qup->bus_err || qup->qup_err) {
                if (qup->bus_err & QUP_I2C_NACK_FLAG) {
-                       dev_err(qup->dev, "NACK from %x\n", msg->addr);
+                       dev_dbg(qup->dev, "NACK from %x\n", msg->addr);
                        ret = -EIO;
                }
        }
@@ -721,7 +721,7 @@ static int qup_i2c_read_fifo_v2(struct qup_i2c_dev *qup,
                ret = qup_i2c_wait_ready(qup, QUP_IN_NOT_EMPTY,
                                         SET_BIT, 4 * ONE_BYTE);
                if (ret) {
-                       dev_err(qup->dev, "timeout for fifo not empty");
+                       dev_dbg(qup->dev, "timeout for fifo not empty");
                        return ret;
                }
                val = readl(qup->base + QUP_IN_FIFO_BASE);
@@ -1012,7 +1012,7 @@ static int bam_do_xfer(struct qup_i2c_dev *qup, struct i2c_msg *msg)
        if (ret || qup->bus_err || qup->qup_err) {
                if (qup->bus_err & QUP_I2C_NACK_FLAG) {
                        msg--;
-                       dev_err(qup->dev, "NACK from %x\n", msg->addr);
+                       dev_dbg(qup->dev, "NACK from %x\n", msg->addr);
                        ret = -EIO;
 
                        if (qup_i2c_change_state(qup, QUP_RUN_STATE)) {