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

drm: panel-orientation-quirks: Add extra quirk table entry for GPD MicroPC

Newer GPD MicroPC BIOS versions have proper DMI strings, add an extra quirk
table entry for these new strings. This is good news, as this means that we
no longer have to update the BIOS dates list with every BIOS update.

Fixes: 652b8b086538("drm: panel-orientation-quirks: Add quirk for GPD MicroPC")
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190624154014.8557-2-hdegoede@redhat.com

+12
+12
drivers/gpu/drm/drm_panel_orientation_quirks.c
··· 90 90 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, 91 91 }; 92 92 93 + static const struct drm_dmi_panel_orientation_data lcd720x1280_rightside_up = { 94 + .width = 720, 95 + .height = 1280, 96 + .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, 97 + }; 98 + 93 99 static const struct drm_dmi_panel_orientation_data lcd800x1280_rightside_up = { 94 100 .width = 800, 95 101 .height = 1280, ··· 129 123 DMI_EXACT_MATCH(DMI_BOARD_NAME, "Default string"), 130 124 }, 131 125 .driver_data = (void *)&gpd_micropc, 126 + }, { /* GPD MicroPC (later BIOS versions with proper DMI strings) */ 127 + .matches = { 128 + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"), 129 + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "MicroPC"), 130 + }, 131 + .driver_data = (void *)&lcd720x1280_rightside_up, 132 132 }, { /* 133 133 * GPD Pocket, note that the the DMI data is less generic then 134 134 * it seems, devices with a board-vendor of "AMI Corporation"