summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Dyer <nick.dyer@itdev.co.uk>2014-07-29 10:46:35 +0100
committerNick Dyer <nick.dyer@itdev.co.uk>2014-09-09 16:27:30 +0100
commit88858db093947cdc5bb5dee9f76694dfc79a5c73 (patch)
tree16608c3f851110532fe960bddfe155fe9840207a
parente3e0ef50605d2952befdcb064feb2db69fe8b753 (diff)
downloadolio-linux-3.10-88858db093947cdc5bb5dee9f76694dfc79a5c73.tar.xz
olio-linux-3.10-88858db093947cdc5bb5dee9f76694dfc79a5c73.zip
Input: atmel_mxt_ts - mXT224 DMA quirk was fixed in firmware v2.0.AA
Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
-rw-r--r--drivers/input/touchscreen/atmel_mxt_ts.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c
index 33cbe2bae71..f4b4f351c49 100644
--- a/drivers/input/touchscreen/atmel_mxt_ts.c
+++ b/drivers/input/touchscreen/atmel_mxt_ts.c
@@ -1856,10 +1856,12 @@ static int mxt_parse_object_table(struct mxt_data *data,
switch (object->type) {
case MXT_GEN_MESSAGE_T5:
- if (data->info->family_id == 0x80) {
+ if (data->info->family_id == 0x80 &&
+ data->info->version < 0x20) {
/*
- * On mXT224 read and discard unused CRC byte
- * otherwise DMA reads are misaligned
+ * On mXT224 firmware versions prior to V2.0
+ * read and discard unused CRC byte otherwise
+ * DMA reads are misaligned.
*/
data->T5_msg_size = mxt_obj_size(object);
} else {