[PATCH 34/40] Input: atmel_mxt_ts - Remove mxt_make_highchg

From: Nick Dyer
Date: Fri Feb 22 2013 - 13:17:39 EST


Reading all messages until an invalid is received is a way of forcing the CHG
line high, which means that when using edge-triggered interrupts the interrupt
can be acquired.

This only papers over the problem because the interrupt may still be lost
during message reading (although this is very rare), so it is better to either

1) Use level-triggered interrupts
or
2) Use edge-triggered interrupts and enable the RETRIGEN feature in T18
COMMSCONFIG

Signed-off-by: Nick Dyer <nick.dyer@xxxxxxxxxxx>
---
drivers/input/touchscreen/atmel_mxt_ts.c | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c
index 6dbd3d6..83a0837 100644
--- a/drivers/input/touchscreen/atmel_mxt_ts.c
+++ b/drivers/input/touchscreen/atmel_mxt_ts.c
@@ -1925,14 +1925,9 @@ static ssize_t mxt_update_fw_store(struct device *dev,
mxt_initialize(data);
}

- if (data->state == APPMODE) {
+ if (data->state == APPMODE)
enable_irq(data->irq);

- error = mxt_process_messages_until_invalid(data);
- if (error)
- return error;
- }
-
return count;
}

@@ -2205,12 +2200,6 @@ static int mxt_probe(struct i2c_client *client,
goto err_free_object;
}

- if (data->state == APPMODE) {
- error = mxt_process_messages_until_invalid(data);
- if (error)
- goto err_free_irq;
- }
-
error = sysfs_create_group(&client->dev.kobj, &mxt_attr_group);
if (error) {
dev_err(&client->dev, "Failure %d creating sysfs group\n",
--
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/