dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] drm: panel-orientation-quirks: Add quirk for Asus T101HA panel
@ 2020-05-31  9:30 Hans de Goede
  2020-05-31  9:30 ` [PATCH 2/2] drm: panel-orientation-quirks: Use generic orientation-data for Acer S1003 Hans de Goede
  2020-05-31 17:25 ` [PATCH 1/2] drm: panel-orientation-quirks: Add quirk for Asus T101HA panel Emil Velikov
  0 siblings, 2 replies; 4+ messages in thread
From: Hans de Goede @ 2020-05-31  9:30 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann
  Cc: Hans de Goede, dri-devel

Like the Asus T100HA the Asus T101HA also uses a panel which has been
mounted 90 degrees rotated, add a quirk for this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 drivers/gpu/drm/drm_panel_orientation_quirks.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
index ffd95bfeaa94..d11d83703931 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -121,6 +121,12 @@ static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T100HAN"),
 		},
 		.driver_data = (void *)&asus_t100ha,
+	}, {	/* Asus T101HA */
+		.matches = {
+		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T101HA"),
+		},
+		.driver_data = (void *)&lcd800x1280_rightside_up,
 	}, {	/* GPD MicroPC (generic strings, also match on bios date) */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Default string"),
-- 
2.26.2

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] drm: panel-orientation-quirks: Use generic orientation-data for Acer S1003
  2020-05-31  9:30 [PATCH 1/2] drm: panel-orientation-quirks: Add quirk for Asus T101HA panel Hans de Goede
@ 2020-05-31  9:30 ` Hans de Goede
  2020-05-31 17:25 ` [PATCH 1/2] drm: panel-orientation-quirks: Add quirk for Asus T101HA panel Emil Velikov
  1 sibling, 0 replies; 4+ messages in thread
From: Hans de Goede @ 2020-05-31  9:30 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann
  Cc: Hans de Goede, dri-devel

The Acer S1003 has proper DMI strings for sys-vendor and product-name,
so we do not need to match by BIOS-date.

This means that the Acer S1003 can use the generic lcd800x1280_rightside_up
drm_dmi_panel_orientation_data struct which is also used by other quirks.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 drivers/gpu/drm/drm_panel_orientation_quirks.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
index d11d83703931..d00ea384dcbf 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -30,12 +30,6 @@ 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,
@@ -114,7 +108,7 @@ static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Acer"),
 		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "One S1003"),
 		},
-		.driver_data = (void *)&acer_s1003,
+		.driver_data = (void *)&lcd800x1280_rightside_up,
 	}, {	/* Asus T100HA */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
-- 
2.26.2

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] drm: panel-orientation-quirks: Add quirk for Asus T101HA panel
  2020-05-31  9:30 [PATCH 1/2] drm: panel-orientation-quirks: Add quirk for Asus T101HA panel Hans de Goede
  2020-05-31  9:30 ` [PATCH 2/2] drm: panel-orientation-quirks: Use generic orientation-data for Acer S1003 Hans de Goede
@ 2020-05-31 17:25 ` Emil Velikov
  2020-06-23 11:04   ` Hans de Goede
  1 sibling, 1 reply; 4+ messages in thread
From: Emil Velikov @ 2020-05-31 17:25 UTC (permalink / raw)
  To: Hans de Goede; +Cc: ML dri-devel, Thomas Zimmermann

On Sun, 31 May 2020 at 10:30, Hans de Goede <hdegoede@redhat.com> wrote:
>
> Like the Asus T100HA the Asus T101HA also uses a panel which has been
> mounted 90 degrees rotated, add a quirk for this.
>
Reading the commit message, made me wonder: If it's similar why it
doesn't use the same quirk?
Something like the following helps:

... 90 degrees rotated, albeit in the opposite direction. Add a quirk for this.

With that the series is:
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>

-Emil
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] drm: panel-orientation-quirks: Add quirk for Asus T101HA panel
  2020-05-31 17:25 ` [PATCH 1/2] drm: panel-orientation-quirks: Add quirk for Asus T101HA panel Emil Velikov
@ 2020-06-23 11:04   ` Hans de Goede
  0 siblings, 0 replies; 4+ messages in thread
From: Hans de Goede @ 2020-06-23 11:04 UTC (permalink / raw)
  To: Emil Velikov; +Cc: ML dri-devel, Thomas Zimmermann

Hi,

On 5/31/20 7:25 PM, Emil Velikov wrote:
> On Sun, 31 May 2020 at 10:30, Hans de Goede <hdegoede@redhat.com> wrote:
>>
>> Like the Asus T100HA the Asus T101HA also uses a panel which has been
>> mounted 90 degrees rotated, add a quirk for this.
>>
> Reading the commit message, made me wonder: If it's similar why it
> doesn't use the same quirk?
> Something like the following helps:
> 
> ... 90 degrees rotated, albeit in the opposite direction. Add a quirk for this.
> 
> With that the series is:
> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>

Thank you, I've ammended the commit msg with your suggestion
and pushed the 2 patches to drm-misc-fixes.

Regards,

Hans

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-06-23 11:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-31  9:30 [PATCH 1/2] drm: panel-orientation-quirks: Add quirk for Asus T101HA panel Hans de Goede
2020-05-31  9:30 ` [PATCH 2/2] drm: panel-orientation-quirks: Use generic orientation-data for Acer S1003 Hans de Goede
2020-05-31 17:25 ` [PATCH 1/2] drm: panel-orientation-quirks: Add quirk for Asus T101HA panel Emil Velikov
2020-06-23 11:04   ` Hans de Goede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).