Skip to contentSkip to conversation

Input: wacom_w8001 - W8001_MAX_LENGTH should be 13

PATCH In review Ping Cheng 1 participant 2 messages May 23, 2016 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Ping Cheng

author
#0 lore raw

PATCH 1/1 Input: wacom_w8001 - W8001_MAX_LENGTH should be 13

From: wacom <[email protected]>

I guess the patch that added two-finger touch support forgot to update W8001_MAX_LENGTH from 11 to 13.

---
 drivers/input/touchscreen/wacom_w8001.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/touchscreen/wacom_w8001.c +1 -1
index bab3c6a..b1b4127 100644
@@ -27,7 +27,7 @@ MODULE_AUTHOR("Jaya Kumar <[email protected]>");
 MODULE_DESCRIPTION(DRIVER_DESC);
 MODULE_LICENSE("GPL");
 
-#define W8001_MAX_LENGTH	11
+#define W8001_MAX_LENGTH	13
 #define W8001_LEAD_MASK		0x80
 #define W8001_LEAD_BYTE		0x80
 #define W8001_TAB_MASK		0x40
Signature · 1 line
1.8.3.1

A message that is not in the archive (sent off-list or not yet received): CAObcDv9zXf9bDHgxq-Bfi1BpBEw0rNVwaE23q4L1VzOfg9pKpw@mail.gmail.com

author
#2 lore raw
Quoted 2 lines · Chris Arges

This still causes crashes for me unless I also have the patch I submitted earlier applied.

Does your device support touch? Your patch would break two-finger touch since it resets idx before reaches full packet length.

Quoted 1 line

I'll look at the crashdump in a bit to see what value idx is.

Yes, please get the idx for us. Depends on the actual value, we'll come up with a solution. I think it will most likely be a specific workaround for pen if the issue only happens with pen.

Cheers,

Ping

Quoted 30 lines · Ping Cheng
Quoted 28 lines

From: wacom <[email protected]>

I guess the patch that added two-finger touch support forgot to update W8001_MAX_LENGTH from 11 to 13.

---
 drivers/input/touchscreen/wacom_w8001.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/touchscreen/wacom_w8001.c +1 -2
index bab3c6a..b1b4127 100644
@@ -27,7 +27,7 @@ MODULE_AUTHOR("Jaya Kumar <[email protected]>");
 MODULE_DESCRIPTION(DRIVER_DESC);
 MODULE_LICENSE("GPL");
 
-#define W8001_MAX_LENGTH       11
+#define W8001_MAX_LENGTH       13
 #define W8001_LEAD_MASK                0x80
 #define W8001_LEAD_BYTE                0x80
 #define W8001_TAB_MASK         0x40
--

1.8.3.1