From: Mika Westerberg <mika.westerberg@linux.intel.com>
To: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Cc: Jiri Kosina <jikos@kernel.org>,
linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] HID: multitouch: Do not fetch initial feature reports for Win8 devices
Date: Fri, 25 Sep 2015 17:23:45 +0300 [thread overview]
Message-ID: <20150925142345.GR1536@lahna.fi.intel.com> (raw)
In-Reply-To: <20150925011601.GA16273@mail.corp.redhat.com>
On Thu, Sep 24, 2015 at 09:16:01PM -0400, Benjamin Tissoires wrote:
> > diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c
> > index 426b2f1a3450..1911f7698511 100644
> > --- a/drivers/hid/hid-multitouch.c
> > +++ b/drivers/hid/hid-multitouch.c
> > @@ -1020,14 +1020,16 @@ static int mt_probe(struct hid_device *hdev, const struct hid_device_id *id)
> > /*
> > * Handle special quirks for Windows 8 certified devices.
> > */
> > - if (id->group == HID_GROUP_MULTITOUCH_WIN_8)
> > + if (id->group == HID_GROUP_MULTITOUCH_WIN_8) {
> > /*
> > * Some multitouch screens do not like to be polled for input
> > - * reports. Fortunately, the Win8 spec says that all touches
> > - * should be sent during each report, making the initialization
> > - * of input reports unnecessary.
> > + * and feature reports. Fortunately, the Win8 spec says that all
> > + * touches should be sent during each report, making the
> > + * initialization of input reports unnecessary.
> > */
> > hdev->quirks |= HID_QUIRK_NO_INIT_INPUT_REPORTS;
> > + hdev->quirks |= HID_QUIRK_NO_INIT_REPORTS;
>
> Problem is that with this quirk, event the features we are interested in
> (and that the device should support or Microsoft would complain) are not
> pre-read. I think we should set HID_QUIRK_NO_INIT_REPORTS (and remove
> HID_QUIRK_NO_INIT_INPUT_REPORTS BTW), and set up a quirk to actually
> retrieve the value of the feature in mt_feature_mapping. This way, we
> would be sure to only probe for features that are supported (contact
> count is the most important one).
Good point. I didn't realize that we actually use those features --
somehow I missed the whole mt_feature_mapping() function :-/
I'll try to implement what you suggested instead. Thanks.
prev parent reply other threads:[~2015-09-25 14:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-24 10:12 [PATCH] HID: multitouch: Do not fetch initial feature reports for Win8 devices Mika Westerberg
2015-09-25 1:16 ` Benjamin Tissoires
2015-09-25 14:23 ` Mika Westerberg [this message]
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=20150925142345.GR1536@lahna.fi.intel.com \
--to=mika.westerberg@linux.intel.com \
--cc=benjamin.tissoires@redhat.com \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox