* [PATCH] Input: wacom_w8001 - W8001_MAX_LENGTH should be 13
@ 2016-05-23 5:26 Ping Cheng
[not found] ` <CAObcDv9zXf9bDHgxq-Bfi1BpBEw0rNVwaE23q4L1VzOfg9pKpw@mail.gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Ping Cheng @ 2016-05-23 5:26 UTC (permalink / raw)
To: linux-input, christopherarges; +Cc: dmitry.torokhov, wacom, Ping Cheng
From: wacom <wacom@localhost.localdomain>
I guess the patch that added two-finger touch support forgot to update
W8001_MAX_LENGTH from 11 to 13.
Signed-off-by: Ping Cheng <pingc@wacom.com>
---
drivers/input/touchscreen/wacom_w8001.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/touchscreen/wacom_w8001.c b/drivers/input/touchscreen/wacom_w8001.c
index bab3c6a..b1b4127 100644
--- a/drivers/input/touchscreen/wacom_w8001.c
+++ b/drivers/input/touchscreen/wacom_w8001.c
@@ -27,7 +27,7 @@ MODULE_AUTHOR("Jaya Kumar <jayakumar.lkml@gmail.com>");
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Input: wacom_w8001 - W8001_MAX_LENGTH should be 13
[not found] ` <CAObcDv9zXf9bDHgxq-Bfi1BpBEw0rNVwaE23q4L1VzOfg9pKpw@mail.gmail.com>
@ 2016-05-23 16:41 ` Ping Cheng
0 siblings, 0 replies; 2+ messages in thread
From: Ping Cheng @ 2016-05-23 16:41 UTC (permalink / raw)
To: Chris Arges; +Cc: linux-input, Dmitry Torokhov
On Mon, May 23, 2016 at 5:29 AM, Chris Arges <christopherarges@gmail.com> wrote:
> 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.
> 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
> On Mon, May 23, 2016 at 12:26 AM, Ping Cheng <pinglinux@gmail.com> wrote:
>>
>> From: wacom <wacom@localhost.localdomain>
>>
>> I guess the patch that added two-finger touch support forgot to update
>> W8001_MAX_LENGTH from 11 to 13.
>>
>> Signed-off-by: Ping Cheng <pingc@wacom.com>
>> ---
>> drivers/input/touchscreen/wacom_w8001.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/input/touchscreen/wacom_w8001.c
>> b/drivers/input/touchscreen/wacom_w8001.c
>> index bab3c6a..b1b4127 100644
>> --- a/drivers/input/touchscreen/wacom_w8001.c
>> +++ b/drivers/input/touchscreen/wacom_w8001.c
>> @@ -27,7 +27,7 @@ MODULE_AUTHOR("Jaya Kumar <jayakumar.lkml@gmail.com>");
>> 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
>>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-05-23 16:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-23 5:26 [PATCH] Input: wacom_w8001 - W8001_MAX_LENGTH should be 13 Ping Cheng
[not found] ` <CAObcDv9zXf9bDHgxq-Bfi1BpBEw0rNVwaE23q4L1VzOfg9pKpw@mail.gmail.com>
2016-05-23 16:41 ` Ping Cheng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).