From: sashiko-bot@kernel.org
To: Roy <rongh7426@gmail.com>
Cc: linux-input@vger.kernel.org, dmitry.torokhov@gmail.com
Subject: Re: [PATCH] HID: multitouch: Add report ID mismatch quirk for Hotlotus touchscreen
Date: Mon, 30 Nov 2026 03:20:06 +0000 [thread overview]
Message-ID: <sashiko-outbox-240303@kernel.org> (raw)
In-Reply-To: <20261130030838.822718-1-rongh7426@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] HID: multitouch: missing
MT_CLS_WIN_8_IGNORE_FEATURE_ID_MISMATCH class checks
--
commit fd49861faa4f7fe3e4fba1b55791da7ce0ece89a
Author: Roy <rongh7426@gmail.com>
HID: multitouch: Add report ID mismatch quirk for Hotlotus touchscreen
This commit introduces MT_CLS_WIN_8_IGNORE_FEATURE_ID_MISMATCH and assigns
the Hotlotus touchscreen (0712:0010) to it so that a mismatched report ID
in its Win8 certification feature report response is accepted.
> diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c
> index f63d6f6550bd8..fe28d8c7dda45 100644
> --- a/drivers/hid/hid-multitouch.c
> +++ b/drivers/hid/hid-multitouch.c
> @@ -216,6 +216,7 @@ static void mt_post_parse(struct mt_device *td, struct mt_application *app);
> #define MT_CLS_WIN_8_NO_STICKY_FINGERS 0x0017
> #define MT_CLS_WIN_8_FORCE_MULTI_INPUT_NSMU 0x0018
> #define MT_CLS_WIN_8_KEEP_LATENCY_ON_CLOSE 0x0019
> +#define MT_CLS_WIN_8_IGNORE_FEATURE_ID_MISMATCH 0x001a
>
> /* vendor specific classes */
> #define MT_CLS_3M 0x0101
> @@ -347,6 +348,15 @@ static const struct mt_class mt_classes[] = {
> MT_QUIRK_WIN8_PTP_BUTTONS |
> MT_QUIRK_KEEP_LATENCY_ON_CLOSE,
> .export_all_inputs = true },
> + { .name = MT_CLS_WIN_8_IGNORE_FEATURE_ID_MISMATCH,
> + .quirks = MT_QUIRK_ALWAYS_VALID |
> + MT_QUIRK_IGNORE_DUPLICATES |
> + MT_QUIRK_HOVERING |
> + MT_QUIRK_CONTACT_CNT_ACCURATE |
> + MT_QUIRK_STICKY_FINGERS |
> + MT_QUIRK_WIN8_PTP_BUTTONS |
> + MT_QUIRK_IGNORE_FEATURE_ID_MISMATCH,
> + .export_all_inputs = true },
[Severity: Medium]
Should MT_CLS_WIN_8_IGNORE_FEATURE_ID_MISMATCH also be added to the
MT_CLS_WIN_8* class checks in mt_touch_input_mapping() and
mt_input_configured()?
Unlike the static flags in mt_classes[], MT_QUIRK_CONFIDENCE is enabled
dynamically for generic Win8 classes when HID_DG_CONFIDENCE is mapped:
drivers/hid/hid-multitouch.c:mt_touch_input_mapping() {
...
case HID_DG_CONFIDENCE:
if ((cls->name == MT_CLS_WIN_8 ||
cls->name == MT_CLS_WIN_8_FORCE_MULTI_INPUT ||
cls->name == MT_CLS_WIN_8_FORCE_MULTI_INPUT_NSMU ||
cls->name == MT_CLS_WIN_8_DISABLE_WAKEUP ||
cls->name == MT_CLS_WIN_8_KEEP_LATENCY_ON_CLOSE) &&
(field->application == HID_DG_TOUCHPAD ||
field->application == HID_DG_TOUCHSCREEN))
app->quirks |= MT_QUIRK_CONFIDENCE;
...
}
Without MT_CLS_WIN_8_IGNORE_FEATURE_ID_MISMATCH in that check, any Win8
touchscreen or touchpad using this class that reports HID_DG_CONFIDENCE
loses MT_QUIRK_CONFIDENCE (and thus ABS_MT_TOOL_TYPE / MT_TOOL_PALM palm
rejection) compared to MT_CLS_WIN_8. Similarly, mt_input_configured()
checks td->mtclass.name against the MT_CLS_WIN_8* classes before calling
hid_haptic_input_configured().
Also, commit aaaea79efba5 ("HID: multitouch: Add report ID mismatch quirk
for ASUS ROG Z13 Folio") only set MT_QUIRK_CONFIDENCE explicitly in
MT_CLS_ASUS_ROG_Z13_FOLIO because that class was not in the
mt_touch_input_mapping() list; adding MT_CLS_WIN_8_IGNORE_FEATURE_ID_MISMATCH
to those checks would allow the ASUS ROG Z13 Folio to share this generic
Win8 class instead of duplicating it.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261130030838.822718-1-rongh7426@gmail.com?part=1
prev parent reply other threads:[~2026-11-30 3:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 3:08 [PATCH] HID: multitouch: Add report ID mismatch quirk for Hotlotus touchscreen Roy
2026-11-30 3:20 ` sashiko-bot [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=sashiko-outbox-240303@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=rongh7426@gmail.com \
--cc=sashiko-reviews@lists.linux.dev \
/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