From: Jason Gerecke <killertofu@gmail.com>
To: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Cc: linux-input@vger.kernel.org, Jiri Kosina <jikos@kernel.org>,
Ping Cheng <pinglinux@gmail.com>,
Aaron Armstrong Skomra <skomra@gmail.com>,
Joshua Dickens <joshua@joshua-dickens.com>,
Jason Gerecke <jason.gerecke@wacom.com>,
Ping Cheng <ping.cheng@wacom.com>
Subject: Re: [PATCH] HID: Recognize "Digitizer" as a valid input application
Date: Tue, 25 Oct 2022 08:43:54 -0700 [thread overview]
Message-ID: <CANRwn3Q4=rO_uqF3SJVRfmUpqoxiHD=m_HMPSLEVqxXnypkAjw@mail.gmail.com> (raw)
In-Reply-To: <CANRwn3SDwUKZ_o_O2Mua8LjVQbkMxBUmU1hOhODGNY0kpekonQ@mail.gmail.com>
Jason
---
Now instead of four in the eights place /
you’ve got three, ‘Cause you added one /
(That is to say, eight) to the two, /
But you can’t take seven from three, /
So you look at the sixty-fours....
On Thu, Oct 20, 2022 at 7:48 AM Jason Gerecke <killertofu@gmail.com> wrote:
>
> On Wed, Oct 19, 2022 at 8:40 AM Benjamin Tissoires
> <benjamin.tissoires@redhat.com> wrote:
> >
> > On Wed, Oct 19, 2022 at 5:18 PM Gerecke, Jason <killertofu@gmail.com> wrote:
> > >
> > > From: Jason Gerecke <jason.gerecke@wacom.com>
> > >
> > > "Digitizer" is a generic usage that may be used by various devices but
> > > which is particularly used by non-display pen tablets. This patch adds the
> > > usage to the list of values matched by the IS_INPUT_APPLICATION() macro
> > > that determines if an input device should be allocated or not.
> > >
> > > Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
> > > Reviewed-by: Ping Cheng <ping.cheng@wacom.com>
> > > ---
> > > include/linux/hid.h | 2 +-
> > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/include/linux/hid.h b/include/linux/hid.h
> > > index 4363a63b9775..07803e144d98 100644
> > > --- a/include/linux/hid.h
> > > +++ b/include/linux/hid.h
> > > @@ -883,7 +883,7 @@ static inline bool hid_is_usb(struct hid_device *hdev)
> > > /* We ignore a few input applications that are not widely used */
> > > #define IS_INPUT_APPLICATION(a) \
> > > (((a >= HID_UP_GENDESK) && (a <= HID_GD_MULTIAXIS)) \
> > > - || ((a >= HID_DG_PEN) && (a <= HID_DG_WHITEBOARD)) \
> >
> > FWIW, this has always been problematic, and I am pretty sure this is
> > breaking existing devices.
> >
> > Have you been running the hid-tools testsuite to see if there were any
> > regressions?
> >
> > Cheers,
> > Benjamin
> >
>
> I was slightly worried that this usage might have been explicitly
> excluded for some compatibility reason, but I didn't see anything in
> the commit history that said that. I also had a hard time convincing
> myself that allocating an input device for a weird device where it is
> unnecessary would cause too much trouble.
>
> I didn't see any regressions when running the hid-tools testsuite. The
> output from the 5.15.74 kernel with / without the patch applied is
> almost identical (there are numerous test failures in test_tablet.py
> even in the unpatched case; maybe I should re-run with Linus's latest
> master instead?)
>
> Jason
>
(Apologies for this doubled message, Benjamin -- I didn't "reply all"
on my previous attempt...)
I re-ran the tests with the Linus's latest 6.1-rc2 and have good
results with / without the patch there. The test_tablet.py failures I
previously saw no longer occur, so seem to be specific to stable.
There are still two tests that fail regardless of if the patch is
applied or not, but the patch doesn't seem to introduce any new
failures of its own.
Jason
next prev parent reply other threads:[~2022-10-25 15:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-19 15:18 [PATCH] HID: Recognize "Digitizer" as a valid input application Gerecke, Jason
2022-10-19 15:40 ` Benjamin Tissoires
2022-10-20 14:48 ` Jason Gerecke
2022-10-25 15:43 ` Jason Gerecke [this message]
2022-12-01 21:59 ` Jason Gerecke
2022-12-03 11:43 ` José Expósito
2022-12-15 16:11 ` Jason Gerecke
2023-03-23 15:24 ` Jason Gerecke
2023-03-30 15:59 ` Benjamin Tissoires
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='CANRwn3Q4=rO_uqF3SJVRfmUpqoxiHD=m_HMPSLEVqxXnypkAjw@mail.gmail.com' \
--to=killertofu@gmail.com \
--cc=benjamin.tissoires@redhat.com \
--cc=jason.gerecke@wacom.com \
--cc=jikos@kernel.org \
--cc=joshua@joshua-dickens.com \
--cc=linux-input@vger.kernel.org \
--cc=ping.cheng@wacom.com \
--cc=pinglinux@gmail.com \
--cc=skomra@gmail.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).