lkml.org 
[lkml]   [2019]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH AUTOSEL 5.1 36/51] drm: panel-orientation-quirks: Add quirk for GPD pocket2
    Date
    From: Hans de Goede <hdegoede@redhat.com>

    [ Upstream commit 15abc7110a77555d3bf72aaef46d1557db0a4ac5 ]

    GPD has done it again, make a nice device (good), use way too generic
    DMI strings (bad) and use a portrait screen rotated 90 degrees (ugly).

    Because of the too generic DMI strings this entry is also doing bios-date
    matching, so the gpd_pocket2 data struct may very well need to be updated
    with some extra bios-dates in the future.

    Changes in v2:
    -Add one more known BIOS date to the list of BIOS dates

    Cc: Jurgen Kramer <gtmkramer@xs4all.nl>
    Reported-by: Jurgen Kramer <gtmkramer@xs4all.nl>
    Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20190524125759.14131-1-hdegoede@redhat.com
    (cherry picked from commit 6dab9102dd7b144e5723915438e0d6c473018cd0)
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/gpu/drm/drm_panel_orientation_quirks.c | 16 ++++++++++++++++
    1 file changed, 16 insertions(+)

    diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
    index 52e445bb1aa5..019f148d5a78 100644
    --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
    +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
    @@ -50,6 +50,14 @@ static const struct drm_dmi_panel_orientation_data gpd_pocket = {
    .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
    };

    +static const struct drm_dmi_panel_orientation_data gpd_pocket2 = {
    + .width = 1200,
    + .height = 1920,
    + .bios_dates = (const char * const []){ "06/28/2018", "08/28/2018",
    + "12/07/2018", NULL },
    + .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
    +};
    +
    static const struct drm_dmi_panel_orientation_data gpd_win = {
    .width = 720,
    .height = 1280,
    @@ -106,6 +114,14 @@ static const struct dmi_system_id orientation_data[] = {
    DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Default string"),
    },
    .driver_data = (void *)&gpd_pocket,
    + }, { /* GPD Pocket 2 (generic strings, also match on bios date) */
    + .matches = {
    + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Default string"),
    + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Default string"),
    + DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "Default string"),
    + DMI_EXACT_MATCH(DMI_BOARD_NAME, "Default string"),
    + },
    + .driver_data = (void *)&gpd_pocket2,
    }, { /* GPD Win (same note on DMI match as GPD Pocket) */
    .matches = {
    DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
    --
    2.20.1
    \
     
     \ /
      Last update: 2019-06-26 05:43    [W:4.032 / U:0.048 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site