lkml.org 
[lkml]   [2019]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5/5] drm/mtk: add panel orientation property
    Date
    This inits the panel orientation property for the mediatek dsi driver
    if the panel orientation (connector.display_info.panel_orientation) is
    not DRM_MODE_PANEL_ORIENTATION_UNKNOWN.

    Signed-off-by: Derek Basehore <dbasehore@chromium.org>
    ---
    drivers/gpu/drm/mediatek/mtk_dsi.c | 8 ++++++++
    1 file changed, 8 insertions(+)

    diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c
    index 4a0b9150a7bb..08ffdc7526dd 100644
    --- a/drivers/gpu/drm/mediatek/mtk_dsi.c
    +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c
    @@ -782,10 +782,18 @@ static int mtk_dsi_create_connector(struct drm_device *drm, struct mtk_dsi *dsi)
    DRM_ERROR("Failed to attach panel to drm\n");
    goto err_connector_cleanup;
    }
    +
    + ret = drm_connector_init_panel_orientation_property(&dsi->conn);
    + if (ret) {
    + DRM_ERROR("Failed to init panel orientation\n");
    + goto err_panel_detach;
    + }
    }

    return 0;

    +err_panel_detach:
    + drm_panel_detach(dsi->panel);
    err_connector_cleanup:
    drm_connector_cleanup(&dsi->conn);
    return ret;
    --
    2.22.0.rc2.383.gf4fbbf30c2-goog
    \
     
     \ /
      Last update: 2019-06-11 06:04    [W:7.226 / U:0.348 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site