From: Benjamin Tissoires <benjamin.tissoires@redhat.com>
To: "Dmitry Torokhov" <dmitry.torokhov@gmail.com>,
"Felix Hädicke" <felixhaedicke@web.de>
Cc: Jiri Kosina <jikos@kernel.org>,
"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
"Sean O'Brien" <seobrien@chromium.org>
Subject: Re: [PATCH] HID: quirks: Add Apple Magic Trackpad 2 to hid_have_special_driver list
Date: Wed, 2 Dec 2020 11:21:03 +0100 [thread overview]
Message-ID: <CAO-hwJLk5hpBQA=Xy4Hmfhx8iMJp+TuqyV33r2ocJX7JW-PkFQ@mail.gmail.com> (raw)
In-Reply-To: <CAKdAkRSyi53f0pwyzmNP4fNhkDT4P5vV_aDneZuCKTqWDvb+Kg@mail.gmail.com>
Hi Felix,
On Wed, Dec 2, 2020 at 5:31 AM Dmitry Torokhov
<dmitry.torokhov@gmail.com> wrote:
>
> On Thu, Nov 19, 2020 at 12:31 AM Felix Hädicke <felixhaedicke@web.de> wrote:
> >
> > The Apple Magic Trackpad 2 is handled by the magicmouse driver. And
> > there were severe stability issues when both drivers (hid-generic and
> > hid-magicmouse) were loaded for this device.
> >
> > Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=210241
As mentioned in the bug, this hardly looks like the correct solution.
The magicmouse is one of the 2 only drivers that calls
`hid_register_report` and then overwrites the size of the report
manually. I can not figure out immediately if this is wrong, and how
that would impact a free in usbhid, but this is highly suspicious to
me.
Cheers,
Benjamin
>
> +Jiri Kosina +Benjamin Tissoires for visibility.
>
> >
> > Signed-off-by: Felix Hädicke <felixhaedicke@web.de>
> > ---
> > drivers/hid/hid-quirks.c | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/drivers/hid/hid-quirks.c b/drivers/hid/hid-quirks.c
> > index 7a2be0205dfd..0a589d956e5c 100644
> > --- a/drivers/hid/hid-quirks.c
> > +++ b/drivers/hid/hid-quirks.c
> > @@ -473,6 +473,8 @@ static const struct hid_device_id hid_have_special_driver[] = {
> > #if IS_ENABLED(CONFIG_HID_MAGICMOUSE)
> > { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGICMOUSE) },
> > { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGICTRACKPAD) },
> > + { HID_BLUETOOTH_DEVICE(BT_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGICTRACKPAD2) },
> > + { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGICTRACKPAD2) },
> > #endif
> > #if IS_ENABLED(CONFIG_HID_MAYFLASH)
> > { HID_USB_DEVICE(USB_VENDOR_ID_DRAGONRISE, USB_DEVICE_ID_DRAGONRISE_PS3) },
> > --
> > 2.29.2
> >
>
> Thanks.
>
> --
> Dmitry
>
next prev parent reply other threads:[~2020-12-02 10:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-19 8:22 [PATCH] HID: quirks: Add Apple Magic Trackpad 2 to hid_have_special_driver list Felix Hädicke
2020-12-02 4:31 ` Dmitry Torokhov
2020-12-02 10:21 ` Benjamin Tissoires [this message]
2021-04-05 19:11 ` Felix Hädicke
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-hwJLk5hpBQA=Xy4Hmfhx8iMJp+TuqyV33r2ocJX7JW-PkFQ@mail.gmail.com' \
--to=benjamin.tissoires@redhat.com \
--cc=dmitry.torokhov@gmail.com \
--cc=felixhaedicke@web.de \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=seobrien@chromium.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).