All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] HID: multitouch: Add support for Google Whiskers Touchpad
@ 2022-04-05 15:04 Marek Maślanka
  2022-04-21  7:46 ` Jiri Kosina
  0 siblings, 1 reply; 4+ messages in thread
From: Marek Maślanka @ 2022-04-05 15:04 UTC (permalink / raw)
  To: linux-input; +Cc: upstream, benjamin.tissoires, jikos, mm

The Google Whiskers touchpad does not work properly with the default
multitouch configuration. Instead, use the same configuration as Google
Rose.

Signed-off-by: Marek Maslanka <mm@semihalf.com>
---

Changes in v2:
   - As a HID device group use HID_GROUP_MULTITOUCH_WIN_8.

  drivers/hid/hid-multitouch.c | 3 +++
  1 file changed, 3 insertions(+)

diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c
index 99eabfb4145b..87a92f2654c0 100644
--- a/drivers/hid/hid-multitouch.c
+++ b/drivers/hid/hid-multitouch.c
@@ -2178,6 +2178,9 @@ static const struct hid_device_id mt_devices[] = {
  	{ .driver_data = MT_CLS_GOOGLE,
  		HID_DEVICE(HID_BUS_ANY, HID_GROUP_ANY, USB_VENDOR_ID_GOOGLE,
  			USB_DEVICE_ID_GOOGLE_TOUCH_ROSE) },
+	{ .driver_data = MT_CLS_GOOGLE,
+		HID_DEVICE(BUS_USB, HID_GROUP_MULTITOUCH_WIN_8, USB_VENDOR_ID_GOOGLE,
+			USB_DEVICE_ID_GOOGLE_WHISKERS) },
  
  	/* Generic MT device */
  	{ HID_DEVICE(HID_BUS_ANY, HID_GROUP_MULTITOUCH, HID_ANY_ID, HID_ANY_ID) },
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] HID: multitouch: Add support for Google Whiskers Touchpad
  2022-04-05 15:04 [PATCH v2] HID: multitouch: Add support for Google Whiskers Touchpad Marek Maślanka
@ 2022-04-21  7:46 ` Jiri Kosina
  2022-04-21  7:51   ` Benjamin Tissoires
  0 siblings, 1 reply; 4+ messages in thread
From: Jiri Kosina @ 2022-04-21  7:46 UTC (permalink / raw)
  To: Marek Maślanka; +Cc: linux-input, upstream, benjamin.tissoires

On Tue, 5 Apr 2022, Marek Maślanka wrote:

> The Google Whiskers touchpad does not work properly with the default
> multitouch configuration. Instead, use the same configuration as Google
> Rose.
> 
> Signed-off-by: Marek Maslanka <mm@semihalf.com>
> ---
> 
> Changes in v2:
>   - As a HID device group use HID_GROUP_MULTITOUCH_WIN_8.
> 
>  drivers/hid/hid-multitouch.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c
> index 99eabfb4145b..87a92f2654c0 100644
> --- a/drivers/hid/hid-multitouch.c
> +++ b/drivers/hid/hid-multitouch.c
> @@ -2178,6 +2178,9 @@ static const struct hid_device_id mt_devices[] = {
>  	{ .driver_data = MT_CLS_GOOGLE,
>  		HID_DEVICE(HID_BUS_ANY, HID_GROUP_ANY, USB_VENDOR_ID_GOOGLE,
>  			USB_DEVICE_ID_GOOGLE_TOUCH_ROSE) },
> +	{ .driver_data = MT_CLS_GOOGLE,
> +		HID_DEVICE(BUS_USB, HID_GROUP_MULTITOUCH_WIN_8,
> USB_VENDOR_ID_GOOGLE,
> +			USB_DEVICE_ID_GOOGLE_WHISKERS) },

This device is already claimed by google-hammer driver though ... ?

Thanks,

-- 
Jiri Kosina
SUSE Labs


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] HID: multitouch: Add support for Google Whiskers Touchpad
  2022-04-21  7:46 ` Jiri Kosina
@ 2022-04-21  7:51   ` Benjamin Tissoires
  2022-04-21  8:25     ` Jiri Kosina
  0 siblings, 1 reply; 4+ messages in thread
From: Benjamin Tissoires @ 2022-04-21  7:51 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Marek Maślanka, linux-input, upstream

On Thu, Apr 21, 2022 at 9:46 AM Jiri Kosina <jikos@kernel.org> wrote:
>
> On Tue, 5 Apr 2022, Marek Maślanka wrote:
>
> > The Google Whiskers touchpad does not work properly with the default
> > multitouch configuration. Instead, use the same configuration as Google
> > Rose.
> >
> > Signed-off-by: Marek Maslanka <mm@semihalf.com>
> > ---
> >
> > Changes in v2:
> >   - As a HID device group use HID_GROUP_MULTITOUCH_WIN_8.
> >
> >  drivers/hid/hid-multitouch.c | 3 +++
> >  1 file changed, 3 insertions(+)
> >
> > diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c
> > index 99eabfb4145b..87a92f2654c0 100644
> > --- a/drivers/hid/hid-multitouch.c
> > +++ b/drivers/hid/hid-multitouch.c
> > @@ -2178,6 +2178,9 @@ static const struct hid_device_id mt_devices[] = {
> >       { .driver_data = MT_CLS_GOOGLE,
> >               HID_DEVICE(HID_BUS_ANY, HID_GROUP_ANY, USB_VENDOR_ID_GOOGLE,
> >                       USB_DEVICE_ID_GOOGLE_TOUCH_ROSE) },
> > +     { .driver_data = MT_CLS_GOOGLE,
> > +             HID_DEVICE(BUS_USB, HID_GROUP_MULTITOUCH_WIN_8,
> > USB_VENDOR_ID_GOOGLE,
> > +                     USB_DEVICE_ID_GOOGLE_WHISKERS) },
>
> This device is already claimed by google-hammer driver though ... ?

See my answer at [0].

hid-google-hammer entry is using the group HID_GROUP_GENERIC, and here
we use HID_GROUP_MULTITOUCH_WIN_8, so the 2 are not stepping on each
other's toes.

FWIW:
Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>

Cheers,
Benjamin

[0] https://lore.kernel.org/linux-input/CAO-hwJ+18Ce_A8F-QVp=TJj2iu60r=f4MkrktYbou-rkXsj+mA@mail.gmail.com/

>
> Thanks,
>
> --
> Jiri Kosina
> SUSE Labs
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] HID: multitouch: Add support for Google Whiskers Touchpad
  2022-04-21  7:51   ` Benjamin Tissoires
@ 2022-04-21  8:25     ` Jiri Kosina
  0 siblings, 0 replies; 4+ messages in thread
From: Jiri Kosina @ 2022-04-21  8:25 UTC (permalink / raw)
  To: Benjamin Tissoires; +Cc: Marek Maślanka, linux-input, upstream

On Thu, 21 Apr 2022, Benjamin Tissoires wrote:

> > > The Google Whiskers touchpad does not work properly with the default
> > > multitouch configuration. Instead, use the same configuration as Google
> > > Rose.
> > >
> > > Signed-off-by: Marek Maslanka <mm@semihalf.com>
> > > ---
> > >
> > > Changes in v2:
> > >   - As a HID device group use HID_GROUP_MULTITOUCH_WIN_8.
> > >
> > >  drivers/hid/hid-multitouch.c | 3 +++
> > >  1 file changed, 3 insertions(+)
> > >
> > > diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c
> > > index 99eabfb4145b..87a92f2654c0 100644
> > > --- a/drivers/hid/hid-multitouch.c
> > > +++ b/drivers/hid/hid-multitouch.c
> > > @@ -2178,6 +2178,9 @@ static const struct hid_device_id mt_devices[] = {
> > >       { .driver_data = MT_CLS_GOOGLE,
> > >               HID_DEVICE(HID_BUS_ANY, HID_GROUP_ANY, USB_VENDOR_ID_GOOGLE,
> > >                       USB_DEVICE_ID_GOOGLE_TOUCH_ROSE) },
> > > +     { .driver_data = MT_CLS_GOOGLE,
> > > +             HID_DEVICE(BUS_USB, HID_GROUP_MULTITOUCH_WIN_8,
> > > USB_VENDOR_ID_GOOGLE,
> > > +                     USB_DEVICE_ID_GOOGLE_WHISKERS) },
> >
> > This device is already claimed by google-hammer driver though ... ?
> 
> See my answer at [0].
> 
> hid-google-hammer entry is using the group HID_GROUP_GENERIC, and here
> we use HID_GROUP_MULTITOUCH_WIN_8, so the 2 are not stepping on each
> other's toes.
> 
> FWIW:
> Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
> 
> Cheers,
> Benjamin
> 
> [0] https://lore.kernel.org/linux-input/CAO-hwJ+18Ce_A8F-QVp=TJj2iu60r=f4MkrktYbou-rkXsj+mA@mail.gmail.com/

Gah, sorry, I missed that one. I've now applied the v2 patch.

-- 
Jiri Kosina
SUSE Labs


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-04-21  8:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-05 15:04 [PATCH v2] HID: multitouch: Add support for Google Whiskers Touchpad Marek Maślanka
2022-04-21  7:46 ` Jiri Kosina
2022-04-21  7:51   ` Benjamin Tissoires
2022-04-21  8:25     ` Jiri Kosina

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.