summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_panel_orientation_quirks.c
diff options
context:
space:
mode:
authorHans de Goede2018-10-12 12:16:10 +0200
committerGreg Kroah-Hartman2018-11-21 09:19:26 +0100
commitc98bfa671c17c69bb1bb82441d6da3ad45ab96a4 (patch)
treea230f74e5c119aa35ea72aef851a4871a741bf4c /drivers/gpu/drm/drm_panel_orientation_quirks.c
parentdrm/dp_mst: Check if primary mstb is null (diff)
downloadkernel-qcow2-linux-c98bfa671c17c69bb1bb82441d6da3ad45ab96a4.tar.gz
kernel-qcow2-linux-c98bfa671c17c69bb1bb82441d6da3ad45ab96a4.tar.xz
kernel-qcow2-linux-c98bfa671c17c69bb1bb82441d6da3ad45ab96a4.zip
drm: panel-orientation-quirks: Add quirk for Acer One 10 (S1003)
commit 0e8afefd5da4875ddea9aa4ad17a2540a2bf9736 upstream. The Acer One 10 uses a clamshell design with a detachable keyboard. As such in normal operating mode, with the keyboard attach the device is in landscape mode (and the Acer logo at boot also shows in landscape mode). But the device uses a portrait screen rotated 90 degrees (sigh). This commit adds a quirk for this device so that we shown the fbcon the right way up and that we hint userspace to also show e.g. plymouth and gdm the right way up. Cc: stable@vger.kernel.org Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20181012101610.29100-1-hdegoede@redhat.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpu/drm/drm_panel_orientation_quirks.c')
-rw-r--r--drivers/gpu/drm/drm_panel_orientation_quirks.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
index fe9c6c731e87..ee4a5e1221f1 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -30,6 +30,12 @@ struct drm_dmi_panel_orientation_data {
int orientation;
};
+static const struct drm_dmi_panel_orientation_data acer_s1003 = {
+ .width = 800,
+ .height = 1280,
+ .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
+};
+
static const struct drm_dmi_panel_orientation_data asus_t100ha = {
.width = 800,
.height = 1280,
@@ -67,7 +73,13 @@ static const struct drm_dmi_panel_orientation_data lcd800x1280_rightside_up = {
};
static const struct dmi_system_id orientation_data[] = {
- { /* Asus T100HA */
+ { /* Acer One 10 (S1003) */
+ .matches = {
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Acer"),
+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "One S1003"),
+ },
+ .driver_data = (void *)&acer_s1003,
+ }, { /* Asus T100HA */
.matches = {
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T100HAN"),