Skip to contentSkip to conversation

drm: panel-orientation-quirks: Add quirk for Teclast X89 tablet

PATCH In review Hans de Goede 1 participant 3 messages Dec 2, 2019 – Dec 15, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm: panel-orientation-quirks: Add quirk for Teclast X89 tablet

The Teclast X89 uses an upside-down mounted eDP panel, add a panel-orientation quirk for this.

---
 drivers/gpu/drm/drm_panel_orientation_quirks.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)
drivers/gpu/drm/drm_panel_orientation_quirks.c +13 -0
index ffd95bfeaa94..9f2d12f28a73 100644
@@ -108,6 +108,13 @@ static const struct drm_dmi_panel_orientation_data lcd1200x1920_rightside_up = {
 	.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
 };
 
+static const struct drm_dmi_panel_orientation_data teclast_x89 = {
+	.width = 1536,
+	.height = 2048,
+	.bios_dates = (const char * const []){ "12/19/2014", NULL },
+	.orientation = DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP,
+};
+
 static const struct dmi_system_id orientation_data[] = {
 	{	/* Acer One 10 (S1003) */
 		.matches = {
@@ -205,6 +212,12 @@ static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad D330-10IGM"),
 		},
 		.driver_data = (void *)&lcd1200x1920_rightside_up,
+	}, {	/* Teclast X89 (tPAD is too generic, also match on bios date) */
+		.matches = {
+		  DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
+		  DMI_EXACT_MATCH(DMI_BOARD_NAME, "tPAD"),
+		},
+		.driver_data = (void *)&teclast_x89,
 	}, {	/* VIOS LTH17 */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VIOS"),
Signature · 6 lines
2.23.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

Hi,

I know these kinda patches are sorta trivial, still I prefer to get an Acked-by before pushing this to drm-misc-next. Can someone review this please?

Alternative I guess we could agree that pushing patches which just add a dmi quirk to drm_panel_orientation_quirks.c is ok when the patch has sat on the list without any response for a week ?

Regards,

Hans

Quoted 30 lines · Hans de Goede

The Teclast X89 uses an upside-down mounted eDP panel, add a panel-orientation quirk for this.

---
  drivers/gpu/drm/drm_panel_orientation_quirks.c | 13 +++++++++++++
  1 file changed, 13 insertions(+)
drivers/gpu/drm/drm_panel_orientation_quirks.c +7 -0
index ffd95bfeaa94..9f2d12f28a73 100644
@@ -108,6 +108,13 @@ static const struct drm_dmi_panel_orientation_data lcd1200x1920_rightside_up = {
  	.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
  };
 
+static const struct drm_dmi_panel_orientation_data teclast_x89 = {
+	.width = 1536,
+	.height = 2048,
+	.bios_dates = (const char * const []){ "12/19/2014", NULL },
+	.orientation = DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP,
+};
+
  static const struct dmi_system_id orientation_data[] = {
  	{	/* Acer One 10 (S1003) */
  		.matches = {
@@ -205,6 +212,12 @@ static const struct dmi_system_id orientation_data[] = {
  		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad D330-10IGM"),
  		},

drivers/gpu/drm/drm_panel_orientation_quirks.c static const struct dmi_system_id orientation_data[] = { · line 223

Quoted 10 lines
drivers/gpu/drm/drm_panel_orientation_quirks.c +6 -0
  		.driver_data = (void *)&lcd1200x1920_rightside_up,
+	}, {	/* Teclast X89 (tPAD is too generic, also match on bios date) */
+		.matches = {
+		  DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
+		  DMI_EXACT_MATCH(DMI_BOARD_NAME, "tPAD"),
+		},
+		.driver_data = (void *)&teclast_x89,
  	}, {	/* VIOS LTH17 */
  		.matches = {
  		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VIOS"),

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw

Hi,

Quoted 8 lines · Hans de Goede

Hi,

I know these kinda patches are sorta trivial, still I prefer to get an Acked-by before pushing this to drm-misc-next. Can someone review this please?

Alternative I guess we could agree that pushing patches which just add a dmi quirk to drm_panel_orientation_quirks.c is ok when the patch has sat on the list without any response for a week ?

Nevermind, for devices with an upside-down panel the info is in the VBT and we should use that instead of doing a quirk, self-nack.

Regards,

Hans

Quoted 32 lines · Hans de Goede
Quoted 31 lines

The Teclast X89 uses an upside-down mounted eDP panel, add a panel-orientation quirk for this.

---
  drivers/gpu/drm/drm_panel_orientation_quirks.c | 13 +++++++++++++

  1 file changed, 13 insertions(+)
drivers/gpu/drm/drm_panel_orientation_quirks.c +7 -0
index ffd95bfeaa94..9f2d12f28a73 100644
@@ -108,6 +108,13 @@ static const struct drm_dmi_panel_orientation_data lcd1200x1920_rightside_up = {
       .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
   };
+static const struct drm_dmi_panel_orientation_data teclast_x89 = {
+    .width = 1536,
+    .height = 2048,
+    .bios_dates = (const char * const []){ "12/19/2014", NULL },
+    .orientation = DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP,
+};
+
   static const struct dmi_system_id orientation_data[] = {

      {    /* Acer One 10 (S1003) */
          .matches = {

drivers/gpu/drm/drm_panel_orientation_quirks.c +2 -0
@@ -205,6 +212,12 @@ static const struct dmi_system_id orientation_data[] = {
             DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad D330-10IGM"),
           },
           .driver_data = (void *)&lcd1200x1920_rightside_up,
+    }, {    /* Teclast X89 (tPAD is too generic, also match on bios date) */
+        .matches = {
Quoted 8 lines

drivers/gpu/drm/drm_panel_orientation_quirks.c static const struct dmi_system_id orientation_data[] = { · line 223

Quoted 8 lines
drivers/gpu/drm/drm_panel_orientation_quirks.c +4 -0
+          DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
+          DMI_EXACT_MATCH(DMI_BOARD_NAME, "tPAD"),
+        },
+        .driver_data = (void *)&teclast_x89,
       }, {    /* VIOS LTH17 */
           .matches = {
             DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VIOS"),

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel