Skip to content

Commit 8a0432b

Browse files
jwrdegoededtor
authored andcommitted
Input: goodix - add Lenovo Yoga Book X90F to nine_bytes_report DMI table
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 <[email protected]> Reviewed-by: Bastien Nocera <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent f5bad62 commit 8a0432b

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

drivers/input/touchscreen/goodix.c

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

0 commit comments

Comments
 (0)