* [PATCH] drm: panel-orientation-quirks: Add quirk for the Chuwi HiBook
@ 2021-09-05 13:05 Hans de Goede
2021-09-09 15:50 ` Thierry Reding
0 siblings, 1 reply; 4+ messages in thread
From: Hans de Goede @ 2021-09-05 13:05 UTC (permalink / raw)
To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann
Cc: Hans de Goede, dri-devel
The Chuwi HiBook 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 | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
index 4e965b0f5502..7e0f581a360e 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -140,6 +140,14 @@ static const struct dmi_system_id orientation_data[] = {
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T103HAF"),
},
.driver_data = (void *)&lcd800x1280_rightside_up,
+ }, { /* Chuwi HiBook (CWI514) */
+ .matches = {
+ DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
+ DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
+ /* Above matches are too generic, add bios-date match */
+ DMI_MATCH(DMI_BIOS_DATE, "05/07/2016"),
+ },
+ .driver_data = (void *)&lcd1200x1920_rightside_up,
}, { /* Chuwi Hi10 Pro (CWI529) */
.matches = {
DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
--
2.31.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] drm: panel-orientation-quirks: Add quirk for the Chuwi HiBook
2021-09-05 13:05 [PATCH] drm: panel-orientation-quirks: Add quirk for the Chuwi HiBook Hans de Goede
@ 2021-09-09 15:50 ` Thierry Reding
2021-09-09 16:25 ` Hans de Goede
2021-09-12 13:37 ` Hans de Goede
0 siblings, 2 replies; 4+ messages in thread
From: Thierry Reding @ 2021-09-09 15:50 UTC (permalink / raw)
To: Hans de Goede
Cc: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, dri-devel
[-- Attachment #1: Type: text/plain, Size: 1713 bytes --]
On Sun, Sep 05, 2021 at 03:05:01PM +0200, Hans de Goede wrote:
> The Chuwi HiBook 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 | 8 ++++++++
> 1 file changed, 8 insertions(+)
I'm not very familiar with these quirks, but this looks correct and
inline with other entries in this table.
> diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
> index 4e965b0f5502..7e0f581a360e 100644
> --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
> +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
> @@ -140,6 +140,14 @@ static const struct dmi_system_id orientation_data[] = {
> DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T103HAF"),
> },
> .driver_data = (void *)&lcd800x1280_rightside_up,
> + }, { /* Chuwi HiBook (CWI514) */
> + .matches = {
> + DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
> + DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
> + /* Above matches are too generic, add bios-date match */
> + DMI_MATCH(DMI_BIOS_DATE, "05/07/2016"),
> + },
> + .driver_data = (void *)&lcd1200x1920_rightside_up,
> }, { /* Chuwi Hi10 Pro (CWI529) */
> .matches = {
> DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
One thing I noticed is that there doesn't seem to be an entry for Chuwi
Hi10 anywhere in linux-next. Perhaps that's from a different patch in
your local tree, or it's based on some other tree that already has that.
In any case, I trust that this can be resolved when applying, so this
seems okay:
Reviewed-by: Thierry Reding <treding@nvidia.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm: panel-orientation-quirks: Add quirk for the Chuwi HiBook
2021-09-09 15:50 ` Thierry Reding
@ 2021-09-09 16:25 ` Hans de Goede
2021-09-12 13:37 ` Hans de Goede
1 sibling, 0 replies; 4+ messages in thread
From: Hans de Goede @ 2021-09-09 16:25 UTC (permalink / raw)
To: Thierry Reding
Cc: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, dri-devel
Hi,
On 9/9/21 5:50 PM, Thierry Reding wrote:
> On Sun, Sep 05, 2021 at 03:05:01PM +0200, Hans de Goede wrote:
>> The Chuwi HiBook 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 | 8 ++++++++
>> 1 file changed, 8 insertions(+)
>
> I'm not very familiar with these quirks, but this looks correct and
> inline with other entries in this table.
>
>> diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
>> index 4e965b0f5502..7e0f581a360e 100644
>> --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
>> +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
>> @@ -140,6 +140,14 @@ static const struct dmi_system_id orientation_data[] = {
>> DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T103HAF"),
>> },
>> .driver_data = (void *)&lcd800x1280_rightside_up,
>> + }, { /* Chuwi HiBook (CWI514) */
>> + .matches = {
>> + DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
>> + DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
>> + /* Above matches are too generic, add bios-date match */
>> + DMI_MATCH(DMI_BIOS_DATE, "05/07/2016"),
>> + },
>> + .driver_data = (void *)&lcd1200x1920_rightside_up,
>> }, { /* Chuwi Hi10 Pro (CWI529) */
>> .matches = {
>> DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
>
> One thing I noticed is that there doesn't seem to be an entry for Chuwi
> Hi10 anywhere in linux-next. Perhaps that's from a different patch in
> your local tree, or it's based on some other tree that already has that.
It is based on drm-misc-next, which has a recent patch adding the Hi 10 Pro:
https://cgit.freedesktop.org/drm-misc/commit/?id=072e70d52372c44df90b44fb4cd949a709bb5bef
I guess this is not in linux-next yet because of the merge-window.
> In any case, I trust that this can be resolved when applying, so this
> seems okay:
>
> Reviewed-by: Thierry Reding <treding@nvidia.com>
Thank you.
Regards,
Hans
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm: panel-orientation-quirks: Add quirk for the Chuwi HiBook
2021-09-09 15:50 ` Thierry Reding
2021-09-09 16:25 ` Hans de Goede
@ 2021-09-12 13:37 ` Hans de Goede
1 sibling, 0 replies; 4+ messages in thread
From: Hans de Goede @ 2021-09-12 13:37 UTC (permalink / raw)
To: Thierry Reding
Cc: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, dri-devel
Hi,
On 9/9/21 5:50 PM, Thierry Reding wrote:
> On Sun, Sep 05, 2021 at 03:05:01PM +0200, Hans de Goede wrote:
>> The Chuwi HiBook 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 | 8 ++++++++
>> 1 file changed, 8 insertions(+)
>
> I'm not very familiar with these quirks, but this looks correct and
> inline with other entries in this table.
>
>> diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
>> index 4e965b0f5502..7e0f581a360e 100644
>> --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
>> +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
>> @@ -140,6 +140,14 @@ static const struct dmi_system_id orientation_data[] = {
>> DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T103HAF"),
>> },
>> .driver_data = (void *)&lcd800x1280_rightside_up,
>> + }, { /* Chuwi HiBook (CWI514) */
>> + .matches = {
>> + DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
>> + DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
>> + /* Above matches are too generic, add bios-date match */
>> + DMI_MATCH(DMI_BIOS_DATE, "05/07/2016"),
>> + },
>> + .driver_data = (void *)&lcd1200x1920_rightside_up,
>> }, { /* Chuwi Hi10 Pro (CWI529) */
>> .matches = {
>> DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
>
> One thing I noticed is that there doesn't seem to be an entry for Chuwi
> Hi10 anywhere in linux-next. Perhaps that's from a different patch in
> your local tree, or it's based on some other tree that already has that.
> In any case, I trust that this can be resolved when applying, so this
> seems okay:
>
> Reviewed-by: Thierry Reding <treding@nvidia.com>
Thank you, I've pushed this to drm-misc-next now.
Regards,
Hans
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-09-12 13:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-05 13:05 [PATCH] drm: panel-orientation-quirks: Add quirk for the Chuwi HiBook Hans de Goede
2021-09-09 15:50 ` Thierry Reding
2021-09-09 16:25 ` Hans de Goede
2021-09-12 13:37 ` Hans de Goede
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.