lkml.org 
[lkml]   [2021]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.10 164/575] drm: panel-orientation-quirks: Update the Lenovo Ideapad D330 quirk (v2)
    Date
    From: Hans de Goede <hdegoede@redhat.com>

    [ Upstream commit 820a2ab23d5eab4ccfb82581eda8ad4acf18458f ]

    2 improvements to the Lenovo Ideapad D330 panel-orientation quirks:

    1. Some versions of the Lenovo Ideapad D330 have a DMI_PRODUCT_NAME of
    "81H3" and others have "81MD". Testing has shown that the "81MD" also has
    a 90 degree mounted panel. Drop the DMI_PRODUCT_NAME from the existing
    quirk so that the existing quirk matches both variants.

    2. Some of the Lenovo Ideapad D330 models have a HD (800x1280) screen
    instead of a FHD (1200x1920) screen (both are mounted right-side-up) add
    a second Lenovo Ideapad D330 quirk for the HD version.

    Changes in v2:
    - Add a new quirk for Lenovo Ideapad D330 models with a HD screen instead
    of a FHD screen

    Link: https://github.com/systemd/systemd/pull/18884
    Acked-by: Simon Ser <contact@emersion.fr>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210530110428.12994-2-hdegoede@redhat.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/gpu/drm/drm_panel_orientation_quirks.c | 9 +++++++--
    1 file changed, 7 insertions(+), 2 deletions(-)

    diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
    index e1b2ce4921ae7..5d0942e3985b2 100644
    --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
    +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
    @@ -223,10 +223,15 @@ static const struct dmi_system_id orientation_data[] = {
    DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo MIIX 320-10ICR"),
    },
    .driver_data = (void *)&lcd800x1280_rightside_up,
    - }, { /* Lenovo Ideapad D330 */
    + }, { /* Lenovo Ideapad D330-10IGM (HD) */
    + .matches = {
    + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"),
    + DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad D330-10IGM"),
    + },
    + .driver_data = (void *)&lcd800x1280_rightside_up,
    + }, { /* Lenovo Ideapad D330-10IGM (FHD) */
    .matches = {
    DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"),
    - DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "81H3"),
    DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad D330-10IGM"),
    },
    .driver_data = (void *)&lcd1200x1920_rightside_up,
    --
    2.33.0


    \
     
     \ /
      Last update: 2021-11-15 20:40    [W:4.110 / U:0.080 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site