Skip to contentSkip to conversation

ACPI: video: Make Lenovo Yoga Tab 3 X90F DMI match less strict

PATCH Applied Hans de Goede 2 participants 3 messages Aug 25, 2024 – Aug 29, 2024 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ACPI: video: Make Lenovo Yoga Tab 3 X90F DMI match less strict

There are 2G and 4G RAM versions of the Lenovo Yoga Tab 3 X90F and it turns out that the 2G version has a DMI product name of "CHERRYVIEW D1 PLATFORM" where as the 4G version has "CHERRYVIEW C0 PLATFORM". The sys-vendor + product-version check are unique enough that the product-name check is not necessary.

Drop the product-name check so that the existing DMI match for the 4G RAM version also matches the 2G RAM version.

---
 drivers/acpi/video_detect.c | 1 -
 1 file changed, 1 deletion(-)
drivers/acpi/video_detect.c +0 -1
index 674b9db7a1ef..e33ab5a2f489 100644
@@ -896,7 +896,6 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
 	 /* Lenovo Yoga Tab 3 Pro YT3-X90F */
 	 .matches = {
 		DMI_MATCH(DMI_SYS_VENDOR, "Intel Corporation"),
-		DMI_MATCH(DMI_PRODUCT_NAME, "CHERRYVIEW D1 PLATFORM"),
 		DMI_MATCH(DMI_PRODUCT_VERSION, "Blade3-10A-001"),
 		},
 	},
Signature · 1 line
2.46.0
#1 lore raw

PATCH 2/2 ACPI: x86: Make Lenovo Yoga Tab 3 X90F DMI match less strict

There are 2G and 4G RAM versions of the Lenovo Yoga Tab 3 X90F and it turns out that the 2G version has a DMI product name of "CHERRYVIEW D1 PLATFORM" where as the 4G version has "CHERRYVIEW C0 PLATFORM". The sys-vendor + product-version check are unique enough that the product-name check is not necessary.

Drop the product-name check so that the existing DMI match for the 4G RAM version also matches the 2G RAM version.

---
 drivers/acpi/x86/utils.c | 1 -
 1 file changed, 1 deletion(-)
drivers/acpi/x86/utils.c +0 -1
index ab2b5fa83e1f..6af546b21574 100644
@@ -355,7 +355,6 @@ static const struct dmi_system_id acpi_quirk_skip_dmi_ids[] = {
 		/* Lenovo Yoga Tab 3 Pro X90F */
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "Intel Corporation"),
-			DMI_MATCH(DMI_PRODUCT_NAME, "CHERRYVIEW D1 PLATFORM"),
 			DMI_MATCH(DMI_PRODUCT_VERSION, "Blade3-10A-001"),
 		},
 		.driver_data = (void *)(ACPI_QUIRK_SKIP_I2C_CLIENTS |
Signature · 1 line
2.46.0
maintainer Applied
#2 lore raw
In reply to Hans de Goede
Quoted 20 lines · Hans de Goede

There are 2G and 4G RAM versions of the Lenovo Yoga Tab 3 X90F and it turns out that the 2G version has a DMI product name of "CHERRYVIEW D1 PLATFORM" where as the 4G version has "CHERRYVIEW C0 PLATFORM". The sys-vendor + product-version check are unique enough that the product-name check is not necessary.

Drop the product-name check so that the existing DMI match for the 4G RAM version also matches the 2G RAM version.

---
 drivers/acpi/video_detect.c | 1 -
 1 file changed, 1 deletion(-)
drivers/acpi/video_detect.c +0 -0
index 674b9db7a1ef..e33ab5a2f489 100644

drivers/acpi/video_detect.c static const struct dmi_system_id video_detect_dmi_table[] = {

Quoted 8 lines
drivers/acpi/video_detect.c +0 -2
@@ -896,7 +896,6 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
         /* Lenovo Yoga Tab 3 Pro YT3-X90F */
         .matches = {
                DMI_MATCH(DMI_SYS_VENDOR, "Intel Corporation"),
-               DMI_MATCH(DMI_PRODUCT_NAME, "CHERRYVIEW D1 PLATFORM"),
                DMI_MATCH(DMI_PRODUCT_VERSION, "Blade3-10A-001"),
                },
        },
--

Applied as 6.12 material along with the [2/2], thanks!