linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Tissoires <benjamin.tissoires@redhat.com>
To: "Marek Maślanka" <mm@semihalf.com>
Cc: "open list:HID CORE LAYER" <linux-input@vger.kernel.org>,
	upstream@semihalf.com, Jiri Kosina <jikos@kernel.org>
Subject: Re: [PATCH] HID: multitouch: Add support for Google Whiskers Touchpad
Date: Tue, 5 Apr 2022 09:50:17 +0200	[thread overview]
Message-ID: <CAO-hwJ+18Ce_A8F-QVp=TJj2iu60r=f4MkrktYbou-rkXsj+mA@mail.gmail.com> (raw)
In-Reply-To: <7b345a16-60bd-001f-edec-724ca2b3c47a@semihalf.com>

Hi Marek,

On Mon, Apr 4, 2022 at 10:22 PM Marek Maślanka <mm@semihalf.com> 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>
> ---
>   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..bda79197273b 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_USB_DEVICE(USB_VENDOR_ID_GOOGLE,
> +                       USB_DEVICE_ID_GOOGLE_WHISKERS) },

You probably want to restrict the group to only multitouch devices.
This device is already handled through hid-google-hammer.c, and adding
this line will make both drivers fight for the resource.

The hid-google-hammer.c line is only for HID_GROUP_GENERIC, so you
should be able to add something along HID_GROUP_MULTITOUCH_WIN_8 or
use
MT_USB_DEVICE() if it's not declared as Win8 compatible.

Cheers,
Benjamin

>
>         /* Generic MT device */
>         { HID_DEVICE(HID_BUS_ANY, HID_GROUP_MULTITOUCH, HID_ANY_ID,
> HID_ANY_ID) },
> --
> 2.32.0
>


      reply	other threads:[~2022-04-05  8:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-04 20:21 [PATCH] HID: multitouch: Add support for Google Whiskers Touchpad Marek Maślanka
2022-04-05  7:50 ` Benjamin Tissoires [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='CAO-hwJ+18Ce_A8F-QVp=TJj2iu60r=f4MkrktYbou-rkXsj+mA@mail.gmail.com' \
    --to=benjamin.tissoires@redhat.com \
    --cc=jikos@kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=mm@semihalf.com \
    --cc=upstream@semihalf.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 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).