summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Dyer <nick.dyer@itdev.co.uk>2014-09-02 16:37:46 +0100
committerNick Dyer <nick.dyer@itdev.co.uk>2014-09-09 16:27:31 +0100
commit513bb8cadf695fe88bb3b101f2398ea2607192a8 (patch)
tree44f1316ed6f888fcf2945c72c2ff8cb5ad82737b
parentb99f70b657dc10cf828ff020cf3904b35d9620f4 (diff)
downloadolio-linux-3.10-513bb8cadf695fe88bb3b101f2398ea2607192a8.tar.xz
olio-linux-3.10-513bb8cadf695fe88bb3b101f2398ea2607192a8.zip
Input: atmel_mxt_ts - don't spam dmesg with warning about empty interrupts
In the case where the chip is not configured in the correct interrupt line mode, this warning output to dmesg output for each touch cycle. Downgrade the message to debug, since it is a benign condition. Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
-rw-r--r--drivers/input/touchscreen/atmel_mxt_ts.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c
index 8eebdfc92f1..93f1c3bf1c1 100644
--- a/drivers/input/touchscreen/atmel_mxt_ts.c
+++ b/drivers/input/touchscreen/atmel_mxt_ts.c
@@ -1223,7 +1223,12 @@ static irqreturn_t mxt_process_messages_t44(struct mxt_data *data)
count = data->msg_buf[0];
if (count == 0) {
- dev_warn(dev, "Interrupt triggered but zero messages\n");
+ /*
+ * This condition is caused by the CHG line being configured
+ * in Mode 0. It results in unnecessary I2C operations but it
+ * is benign.
+ */
+ dev_dbg(dev, "Interrupt triggered but zero messages\n");
return IRQ_NONE;
} else if (count > data->max_reportid) {
dev_err(dev, "T44 count %d exceeded max report id\n", count);