Skip to content

Commit 1484852

Browse files
jwrdegoedegregkh
authored andcommitted
Input: goodix - add Lenovo Yoga Book X90F to nine_bytes_report DMI table
commit 8a0432b upstream. The Android Lenovo Yoga Book X90F / X90L uses the same goodix touchscreen with 9 bytes touch reports for its touch keyboard as the already supported Windows Lenovo Yoga Book X91F/L, add a DMI match for this to the nine_bytes_report DMI table. When the quirk for the X91F/L was initially added it was written to also apply to the X90F/L but this does not work because the Android version of the Yoga Book uses completely different DMI strings. Also adjust the X91F/L quirk to reflect that it only applies to the X91F/L models. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Bastien Nocera <hadess@hadess.net> Link: https://lore.kernel.org/r/20230315134442.71787-1-hdegoede@redhat.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent b643051 commit 1484852

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

drivers/input/touchscreen/goodix.c

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,18 @@ static const unsigned long goodix_irq_flags[] = {
123123
static const struct dmi_system_id nine_bytes_report[] = {
124124
#if defined(CONFIG_DMI) && defined(CONFIG_X86)
125125
{
126-
.ident = "Lenovo YogaBook",
127-
/* YB1-X91L/F and YB1-X90L/F */
126+
/* Lenovo Yoga Book X90F / X90L */
128127
.matches = {
129-
DMI_MATCH(DMI_PRODUCT_NAME, "Lenovo YB1-X9")
128+
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Intel Corporation"),
129+
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "CHERRYVIEW D1 PLATFORM"),
130+
DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "YETI-11"),
131+
}
132+
},
133+
{
134+
/* Lenovo Yoga Book X91F / X91L */
135+
.matches = {
136+
/* Non exact match to match F + L versions */
137+
DMI_MATCH(DMI_PRODUCT_NAME, "Lenovo YB1-X91"),
130138
}
131139
},
132140
#endif

0 commit comments

Comments
 (0)