From: Lin Tzu Yang <rongh7426@gmail.com>
To: Jiri Kosina <jikos@kernel.org>, Benjamin Tissoires <bentiss@kernel.org>
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH v2] HID: multitouch: Add report ID mismatch quirk for Hotlotus touchscreen
Date: Mon, 30 Nov 2026 14:22:40 +0800 [thread overview]
Message-ID: <20261130062240.830426-1-rongh7426@gmail.com> (raw)
The Hotlotus touchscreen (0712:0010, sold with some small HDMI displays)
answers a GET_REPORT for its Win8 certification blob, feature report 3,
with report ID 5 as the first byte. The rest of the buffer is the usual
blob. The driver then logs on every probe:
hid-multitouch 0003:0712:0010.0001: Returned feature report did not match the request
The device works otherwise. Use the quirk added for the ASUS ROG Z13
Folio, in a Win8 class that keeps the quirks this device gets today.
Add the class to the MT_CLS_WIN_8 checks for Confidence and haptic
touchpads too, so it behaves like MT_CLS_WIN_8 apart from the quirk.
Tested on a Raspberry Pi 5 by rebinding the device: the message is gone,
the quirks only gain MT_QUIRK_IGNORE_FEATURE_ID_MISMATCH and the input
device has the same capabilities.
This patch was written with the help of an AI coding assistant (Claude).
I tested it on hardware and reviewed the change.
Signed-off-by: Lin Tzu Yang <rongh7426@gmail.com>
---
Changes in v2:
- Add the new class to the MT_CLS_WIN_8 checks in
mt_touch_input_mapping() and mt_input_configured(), as the Sashiko
review bot pointed out. This device has no Confidence usage and is
not a touchpad, so it behaves the same as with v1; retested on the
Pi with the same results.
- Use my full name.
v1: https://lore.kernel.org/all/20261130030838.822718-1-rongh7426@gmail.com/
drivers/hid/hid-ids.h | 3 +++
drivers/hid/hid-multitouch.c | 22 ++++++++++++++++++++--
2 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
index 91319aa..ec03df9 100644
--- a/drivers/hid/hid-ids.h
+++ b/drivers/hid/hid-ids.h
@@ -700,6 +700,9 @@
#define USB_VENDOR_ID_HORI 0x0f0d
#define USB_DEVICE_ID_HORI_WIRELESS_SWITCH_PAD 0x00f6
+#define USB_VENDOR_ID_HOTLOTUS 0x0712
+#define USB_DEVICE_ID_HOTLOTUS_TOUCHSCREEN 0x0010
+
#define USB_VENDOR_ID_HP 0x03f0
#define USB_PRODUCT_ID_HP_HYPERX_QUADCAST_2 0x07b4
#define USB_PRODUCT_ID_HP_ELITE_PRESENTER_MOUSE_464A 0x464a
diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c
index 3afca07..495f1e3 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 },
/*
* vendor specific classes
@@ -894,7 +904,8 @@ static int mt_touch_input_mapping(struct hid_device *hdev, struct hid_input *hi,
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) &&
+ cls->name == MT_CLS_WIN_8_KEEP_LATENCY_ON_CLOSE ||
+ cls->name == MT_CLS_WIN_8_IGNORE_FEATURE_ID_MISMATCH) &&
(field->application == HID_DG_TOUCHPAD ||
field->application == HID_DG_TOUCHSCREEN))
app->quirks |= MT_QUIRK_CONFIDENCE;
@@ -1956,7 +1967,8 @@ static int mt_input_configured(struct hid_device *hdev, struct hid_input *hi)
if (td->is_haptic_touchpad && (td->mtclass.name == MT_CLS_WIN_8 ||
td->mtclass.name == MT_CLS_WIN_8_FORCE_MULTI_INPUT ||
- td->mtclass.name == MT_CLS_WIN_8_KEEP_LATENCY_ON_CLOSE)) {
+ td->mtclass.name == MT_CLS_WIN_8_KEEP_LATENCY_ON_CLOSE ||
+ td->mtclass.name == MT_CLS_WIN_8_IGNORE_FEATURE_ID_MISMATCH)) {
if (hid_haptic_input_configured(hdev, td->haptic, hi) == 0)
td->is_haptic_touchpad = false;
} else {
@@ -2495,6 +2507,12 @@ static const struct hid_device_id mt_devices[] = {
HID_DEVICE(BUS_I2C, HID_GROUP_MULTITOUCH_WIN_8,
0x35cc, 0x0104) },
+ /* Hotlotus touchscreen */
+ { .driver_data = MT_CLS_WIN_8_IGNORE_FEATURE_ID_MISMATCH,
+ HID_DEVICE(BUS_USB, HID_GROUP_MULTITOUCH_WIN_8,
+ USB_VENDOR_ID_HOTLOTUS,
+ USB_DEVICE_ID_HOTLOTUS_TOUCHSCREEN) },
+
/* Ilitek dual touch panel */
{ .driver_data = MT_CLS_NSMU,
MT_USB_DEVICE(USB_VENDOR_ID_ILITEK,
--
2.51.1.windows.1
reply other threads:[~2026-11-30 6:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20261130062240.830426-1-rongh7426@gmail.com \
--to=rongh7426@gmail.com \
--cc=bentiss@kernel.org \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®