linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Tissoires <benjamin.tissoires@redhat.com>
To: Jiri Kosina <jikos@kernel.org>
Cc: Dennis Chen <barracks510@gmail.com>, linux-input@vger.kernel.org
Subject: Re: [PATCH] HID: multitouch: add support for Type Cover Pro 3
Date: Fri, 17 Jun 2016 23:11:42 +0200	[thread overview]
Message-ID: <20160617211142.GH24234@mail.corp.redhat.com> (raw)
In-Reply-To: <alpine.LNX.2.00.1606172259110.6874@cbobk.fhfr.pm>

On Jun 17 2016 or thereabouts, Jiri Kosina wrote:
> On Fri, 17 Jun 2016, Dennis Chen wrote:
> 
> > Include Microsoft Type Cover 3 support into hid-multitouch.c
> > Allow touchpad device to have multitouch functionality.
> > 
> > Signed-off-by: Dennis Chen <barracks510@gmail.com>
> > ---
> >  drivers/hid/Kconfig          |  1 +
> >  drivers/hid/hid-multitouch.c | 14 ++++++++++++++
> >  2 files changed, 15 insertions(+)
> > 
> > diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig
> > index 5646ca4..5af0603 100644
> > --- a/drivers/hid/Kconfig
> > +++ b/drivers/hid/Kconfig
> > @@ -530,6 +530,7 @@ config HID_MULTITOUCH
> >  	  - IrTouch Infrared USB panels
> >  	  - LG Display panels (Dell ST2220Tc)
> >  	  - Lumio CrystalTouch panels
> > +	  - Microsoft Type Cover 3 touchpad
> >  	  - MosArt dual-touch panels
> >  	  - Panasonic multitouch panels
> >  	  - PenMount dual touch panels
> > diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c
> > index c741f5e..f052ed2 100644
> > --- a/drivers/hid/hid-multitouch.c
> > +++ b/drivers/hid/hid-multitouch.c
> > @@ -1377,6 +1377,20 @@ static const struct hid_device_id mt_devices[] = {
> >  		MT_USB_DEVICE(USB_VENDOR_ID_ILITEK,
> >  			USB_DEVICE_ID_ILITEK_MULTITOUCH) },
> >  
> > +	/* Microsoft Type Cover 3 touchpad */
> > +	{ .driver_data = MT_CLS_EXPORT_ALL_INPUTS,
> > +		MT_USB_DEVICE(USB_VENDOR_ID_MICROSOFT,
> > +			USB_DEVICE_ID_MS_TYPE_COVER_PRO_3) },
> > +	{ .driver_data = MT_CLS_EXPORT_ALL_INPUTS,
> > +		MT_USB_DEVICE(USB_VENDOR_ID_MICROSOFT,
> > +			USB_DEVICE_ID_MS_TYPE_COVER_PRO_3_2) },
> > +	{ .driver_data = MT_CLS_EXPORT_ALL_INPUTS,
> > +		MT_USB_DEVICE(USB_VENDOR_ID_MICROSOFT,
> > +			USB_DEVICE_ID_MS_TYPE_COVER_PRO_3_JP) },
> > +	{ .driver_data = MT_CLS_EXPORT_ALL_INPUTS,
> > +		MT_USB_DEVICE(USB_VENDOR_ID_MICROSOFT,
> > +			USB_DEVICE_ID_MS_TYPE_COVER_3) },
> > +
> >  	/* MosArt panels */
> >  	{ .driver_data = MT_CLS_CONFIDENCE_MINUS_ONE,
> 
> This would mean that both hid-multitouch and hid-microsoft would claim 
> support for this device, which isn't really going to provide consistent 
> user experience. Is MT_CLS_EXPORT_ALL_INPUTS sufficient to provide 
> complete functionality by hid-multitouch? If so, the support from 
> hid-microsoft should be dropped.

Also, please see if the series with the 2 following patches is not
sufficient enough:
http://www.spinics.net/lists/linux-input/msg44576.html
http://www.spinics.net/lists/linux-input/msg44577.html

If you just adapt the second patch to add your ids, it should hopefully
be working (though the surface book is not for some unknown reasons
yet).

Cheers,
Benjamin

--
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

  reply	other threads:[~2016-06-17 21:11 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-17 20:47 [PATCH] HID: multitouch: add support for Type Cover Pro 3 Dennis Chen
2016-06-17 21:00 ` Jiri Kosina
2016-06-17 21:11   ` Benjamin Tissoires [this message]
2016-06-18 18:53     ` Dennis Chen
2016-06-18 19:45       ` Benjamin Tissoires
2016-06-18 23:13         ` Dennis Chen
2016-06-19 20:48         ` Dennis Chen
2016-06-20  9:59           ` Benjamin Tissoires
2016-06-24  3:38             ` Dennis Chen
2016-06-24  7:14               ` Benjamin Tissoires
2016-06-25  7:49                 ` Dennis Chen
2016-07-01 14:52                   ` Benjamin Tissoires
2016-07-23 20:13                     ` Dennis Chen
2016-07-25 10:16                       ` Benjamin Tissoires
2016-09-19 16:30                         ` Dennis Chen

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=20160617211142.GH24234@mail.corp.redhat.com \
    --to=benjamin.tissoires@redhat.com \
    --cc=barracks510@gmail.com \
    --cc=jikos@kernel.org \
    --cc=linux-input@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;
as well as URLs for NNTP newsgroup(s).