Input: atmel_mxt_ts - mXT224 DMA quirk was fixed in firmware v2.0.AA
authorNick Dyer <nick.dyer@itdev.co.uk>
Thu, 7 Aug 2014 16:56:01 +0000 (09:56 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 8 Aug 2014 06:36:32 +0000 (23:36 -0700)
Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/atmel_mxt_ts.c

index 03b85711cb70c9406aae09647d12df68045ff2b3..d50c6147bb7688c0938b7d5851ee4d97e9f8735f 100644 (file)
@@ -1422,10 +1422,12 @@ static int mxt_get_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 {