From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796008807; b=c0VC8sp8FljUUelIPlJ54nm0s2xPaDZQfUiW1PE02yrunrSbHMHJMU3xwebM719vcsnZ cZX2sfq2c5Bg7JfaNsPILaK0auzZ026PFp0sVuxe+S9L/NsQZQzDHiKUJ+dvby8Rlq6jX iRa0nxnftaQT4pAsef7/Ltr3d0p4YnaY7x7k86gh+BPT0kGL5nmeQIHYct77pAYpY8Vga +65paYAhwwJB/D7lscGLBpECL6spYnVYIaVlGRE3jecMKkbuXli4jzcEavjlEbvcoaCSW 1DS26XeKLplxbAote7Hh23AnuZlcWkNvwDYdPReNLWK0YfEi85tPplTfcVI2wPvzp8g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796008807; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=BV6bzo8hfQnHIPYwAPx17eoOMsnL3FBjRNmehfPrrFo=; b=bjQdbbqQlApcl5AIAfRlUiaXcFTd0GTD3OT4iP2t4PCzPzn2/DJT9QWQHnN01N7icI1o yrpnDyglJqTZWAA0CUy0nNhA5NHgVZx1nywG4FgKLukA6Jx0LEVq6Anx3R2hPyBoJHonv U1LcBoeqz3TQ5+Ftvi8ZpKqqHHiUaFzYK2kWYb/0yxwtBbBFJw7BUNjSfec9WRNRuY2g1 V4oEyP73D/gIEuspPX3cK5/nk/pkZq+fQvlGeX6PKK86E9XEunQis1WSDN4neddZkYzoL oPB6AjkHqShVt9XVb3yCtm5I3N42e79YiJLdWlS/ZlwC/aHIf/GE4leuaOo+JLbaLJQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=XFVf51Z8; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9DA39606A31C for ; Mon, 30 Nov 2026 03:20:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=XFVf51Z8 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3ED3D1F00896; Mon, 30 Nov 2026 03:20:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796008807; bh=BV6bzo8hfQnHIPYwAPx17eoOMsnL3FBjRNmehfPrrFo=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=XFVf51Z8hO7tjGjiGW6IEVxhaCkEyj5r7m3T3qRCKEGy1pvmhLjZFRufoKsMJ0vOg pV+Iqh/bnad8YrMzj9zrmyYsWsa6DmsCFWgb5C4fG+GmOw9g5kQt822ea6RovRDolW sgYVFK+H3Vcdif4kxDFS3EIY4UwVDmiY2rPzh/wvSpNwZPsHFvLR+WljdK7E70/EgQ cGqRH4I2VGNmotRERLFGtfK461c43xbslPdq8NUOtbrXVPF9lkkCgcyh8hy4MyZg3t Dz+aU6Dp79aL9nX7JphypuYSiGgtoEg1rLzg8Ds70l7/Q2pptrfDv32CJwYgVPEDhU fvSwZpgv3lk+g== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] HID: multitouch: Add report ID mismatch quirk for Hotlotus touchscreen Reply-To: sashiko-reviews@lists.linux.dev To: Roy Cc: linux-input@vger.kernel.org, dmitry.torokhov@gmail.com In-Reply-To: <20261130030838.822718-1-rongh7426@gmail.com> References: <20261130030838.822718-1-rongh7426@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 03:20:06 +0000 X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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, struc= t 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 > =20 > /* vendor specific classes */ > #define MT_CLS_3M 0x0101 > @@ -347,6 +348,15 @@ static const struct mt_class mt_classes[] =3D { > MT_QUIRK_WIN8_PTP_BUTTONS | > MT_QUIRK_KEEP_LATENCY_ON_CLOSE, > .export_all_inputs =3D true }, > + { .name =3D MT_CLS_WIN_8_IGNORE_FEATURE_ID_MISMATCH, > + .quirks =3D 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 =3D 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 =3D=3D MT_CLS_WIN_8 || cls->name =3D=3D MT_CLS_WIN_8_FORCE_MULTI_INPUT || cls->name =3D=3D MT_CLS_WIN_8_FORCE_MULTI_INPUT_NSMU || cls->name =3D=3D MT_CLS_WIN_8_DISABLE_WAKEUP || cls->name =3D=3D MT_CLS_WIN_8_KEEP_LATENCY_ON_CLOSE) && (field->application =3D=3D HID_DG_TOUCHPAD || field->application =3D=3D HID_DG_TOUCHSCREEN)) app->quirks |=3D 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_MISMAT= CH to those checks would allow the ASUS ROG Z13 Folio to share this generic Win8 class instead of duplicating it. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261130030838.8227= 18-1-rongh7426@gmail.com?part=3D1