summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2019-07-20 13:38:28 +0200
committerHans de Goede <hdegoede@redhat.com>2019-07-20 13:38:28 +0200
commit9255d6098be32ea75bbc6e0e08ee20f9ebff2ea5 (patch)
tree62eb8e76f78ea8fc003a8392563221c2fdaa95a2
parentd20e296cfa9cc7bba1e9b34f3c1373513163e707 (diff)
downloadkernel-9255d6098be32ea75bbc6e0e08ee20f9ebff2ea5.tar.gz
kernel-9255d6098be32ea75bbc6e0e08ee20f9ebff2ea5.tar.xz
kernel-9255d6098be32ea75bbc6e0e08ee20f9ebff2ea5.zip
Fix the LCD panel orientation on the GPD MicroPC
-rw-r--r--drm-panel-orientation-quirks.patch49
-rw-r--r--kernel.spec6
2 files changed, 55 insertions, 0 deletions
diff --git a/drm-panel-orientation-quirks.patch b/drm-panel-orientation-quirks.patch
new file mode 100644
index 000000000..d5e3bf361
--- /dev/null
+++ b/drm-panel-orientation-quirks.patch
@@ -0,0 +1,49 @@
+From aab65520447cb19e3be4a301b796dfb588e85873 Mon Sep 17 00:00:00 2001
+From: Hans de Goede <hdegoede@redhat.com>
+Date: Sun, 2 Jun 2019 15:20:33 +0200
+Subject: [PATCH] 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")
+Signed-off-by: Hans de Goede <hdegoede@redhat.com>
+---
+ drivers/gpu/drm/drm_panel_orientation_quirks.c | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
+index d8a0bcd02f34..ffd95bfeaa94 100644
+--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
++++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
+@@ -90,6 +90,12 @@ static const struct drm_dmi_panel_orientation_data itworks_tw891 = {
+ .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
+ };
+
++static const struct drm_dmi_panel_orientation_data lcd720x1280_rightside_up = {
++ .width = 720,
++ .height = 1280,
++ .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
++};
++
+ static const struct drm_dmi_panel_orientation_data lcd800x1280_rightside_up = {
+ .width = 800,
+ .height = 1280,
+@@ -123,6 +129,12 @@ static const struct dmi_system_id orientation_data[] = {
+ DMI_EXACT_MATCH(DMI_BOARD_NAME, "Default string"),
+ },
+ .driver_data = (void *)&gpd_micropc,
++ }, { /* GPD MicroPC (later BIOS versions with proper DMI strings) */
++ .matches = {
++ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"),
++ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "MicroPC"),
++ },
++ .driver_data = (void *)&lcd720x1280_rightside_up,
+ }, { /*
+ * GPD Pocket, note that the the DMI data is less generic then
+ * it seems, devices with a board-vendor of "AMI Corporation"
+--
+2.21.0
+
diff --git a/kernel.spec b/kernel.spec
index 76ffe03ed..882dfd423 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -595,6 +595,9 @@ Patch527: v2-powerpc-mm-mark-more-tlb-functions-as-__always_inline.patch
Patch530: crypto-ghash-fix-unaligned-memory-access-in-ghash_setkey.patch
+# Fix the LCD panel orientation on the GPD MicroPC, pending as fix for 5.3
+Patch531: drm-panel-orientation-quirks.patch
+
# END OF PATCH DEFINITIONS
%endif
@@ -1833,6 +1836,9 @@ fi
#
#
%changelog
+* Sat Jul 20 2019 Hans de Goede <hdegoede@redhat.com>
+- Fix the LCD panel orientation on the GPD MicroPC
+
* Fri Jul 19 2019 Peter Robinson <pbrobinson@fedoraproject.org>
- RHBZ Bug 1576593 - work around while vendor investigates