Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm: panel-orientation-quirks: Update the Lenovo Ideapad D330 quirk (v2)

2 improvements to the Lenovo Ideapad D330 panel-orientation quirks:

1. Some versions of the Lenovo Ideapad D330 have a DMI_PRODUCT_NAME of
"81H3" and others have "81MD". Testing has shown that the "81MD" also has
a 90 degree mounted panel. Drop the DMI_PRODUCT_NAME from the existing
quirk so that the existing quirk matches both variants.

2. Some of the Lenovo Ideapad D330 models have a HD (800x1280) screen
instead of a FHD (1200x1920) screen (both are mounted right-side-up) add
a second Lenovo Ideapad D330 quirk for the HD version.

Changes in v2:
- Add a new quirk for Lenovo Ideapad D330 models with a HD screen instead
of a FHD screen

Link: https://github.com/systemd/systemd/pull/18884
Acked-by: Simon Ser <contact@emersion.fr>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210530110428.12994-2-hdegoede@redhat.com

+7 -2
+7 -2
drivers/gpu/drm/drm_panel_orientation_quirks.c
··· 211 211 DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo MIIX 320-10ICR"), 212 212 }, 213 213 .driver_data = (void *)&lcd800x1280_rightside_up, 214 - }, { /* Lenovo Ideapad D330 */ 214 + }, { /* Lenovo Ideapad D330-10IGM (HD) */ 215 215 .matches = { 216 216 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"), 217 - DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "81H3"), 217 + DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad D330-10IGM"), 218 + }, 219 + .driver_data = (void *)&lcd800x1280_rightside_up, 220 + }, { /* Lenovo Ideapad D330-10IGM (FHD) */ 221 + .matches = { 222 + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"), 218 223 DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad D330-10IGM"), 219 224 }, 220 225 .driver_data = (void *)&lcd1200x1920_rightside_up,