From: Jason Gerecke <killertofu@gmail.com>
To: Jiri Kosina <jikos@kernel.org>
Cc: linux-input@vger.kernel.org,
Benjamin Tissoires <benjamin.tissoires@redhat.com>,
Ping Cheng <pinglinux@gmail.com>, Aaron Skomra <skomra@gmail.com>,
Jason Gerecke <jason.gerecke@wacom.com>,
Clifford Jolly <expiredpopsicle@gmail.com>
Subject: Re: [PATCH v2] HID: wacom: Add support for Cintiq Companion 2
Date: Mon, 12 Oct 2015 09:23:59 -0700 [thread overview]
Message-ID: <561BDE9F.7070404@gmail.com> (raw)
In-Reply-To: <alpine.LNX.2.00.1510120059280.21100@pobox.suse.cz>
10/11/2015 4:02 PM, Jiri Kosina wrote:
> On Thu, 8 Oct 2015, Jason Gerecke wrote:
>
>> Adds support for the EMR (pen+pad) and touchscreen devices used by the
>> Wacom Cintiq Companion 2. This applies both to using the device as a
>> standalone system, as well as when operating in "Cintiq mode" (where
>> the EMR/touchscreen are simply exposed as USB devices to the system
>> its connected to).
>>
>> Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
>> Signed-off-by: Clifford Jolly <expiredpopsicle@gmail.com>
> [ ... snip ... ]
>> @@ -2290,6 +2311,7 @@ void wacom_wac_irq(struct wacom_wac *wacom_wac, size_t len)
>> case WACOM_27QHD:
>> case DTK:
>> case CINTIQ_HYBRID:
>> + case CINTIQ_COMPANION_2:
>> sync = wacom_intuos_irq(wacom_wac);
>> break;
>
> This doesn't make any sense. You break here out after handling
> CINTIQ_COMPANION_2 in features->type switch ...
>
>>
>> @@ -2543,6 +2565,7 @@ int wacom_setup_pen_input_capabilities(struct input_dev *input_dev,
>> case CINTIQ:
>> case WACOM_13HD:
>> case CINTIQ_HYBRID:
>> + case CINTIQ_COMPANION_2:
>> input_set_abs_params(input_dev, ABS_Z, -900, 899, 0, 0);
>> input_abs_set_res(input_dev, ABS_Z, 287);
>> __set_bit(INPUT_PROP_DIRECT, input_dev->propbit);
>
> ... here you break out of the switch case a few lines below again.
>
>
>> @@ -2595,6 +2618,12 @@ int wacom_setup_pen_input_capabilities(struct input_dev *input_dev,
>> __clear_bit(ABS_MISC, input_dev->absbit);
>> /* fall through */
>>
>> + case CINTIQ_COMPANION_2:
>> + for (i = 0; i < 10; i++)
>
> Where do you define this 'i'?
>
>> + __set_bit(BTN_0 + i, input_dev->keybit);
>> + __set_bit(BTN_A, input_dev->keybit);
>> + break;
>> +
>
> And here you break out of the same case again explicitly again.
>
Looks like something went awry when migrating my patch from my branch in
our local "input-wacom" tree to your upstream branch. Based on what's
wrong, it looks like `patch` may have been confused by Aaron's recent
changes to 'wacom_setup_pad_input_capabilities' (70ee06c) that weren't
integrated into my local branch.
I'll submit a fixed version shortly. Apologies for the noise.
Jason
---
Now instead of four in the eights place /
you’ve got three, ‘Cause you added one /
(That is to say, eight) to the two, /
But you can’t take seven from three, /
So you look at the sixty-fours....
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-10-12 16:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-07 23:55 [PATCH] HID: wacom: Add support for Cintiq Companion 2 Jason Gerecke
2015-10-08 0:59 ` Bastien Nocera
2015-10-08 2:31 ` Cliff Jolly
2015-10-08 18:28 ` [PATCH v2] " Jason Gerecke
2015-10-11 23:02 ` Jiri Kosina
2015-10-12 16:23 ` Jason Gerecke [this message]
2015-10-13 17:03 ` [PATCH v3] " Jason Gerecke
2015-10-21 9:21 ` Jiri Kosina
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=561BDE9F.7070404@gmail.com \
--to=killertofu@gmail.com \
--cc=benjamin.tissoires@redhat.com \
--cc=expiredpopsicle@gmail.com \
--cc=jason.gerecke@wacom.com \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=pinglinux@gmail.com \
--cc=skomra@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.