diff options
author | Stefan Agner <stefan@agner.ch> | 2018-11-05 13:32:41 +0100 |
---|---|---|
committer | Philippe Schenker <philippe.schenker@toradex.com> | 2019-07-31 10:13:21 +0200 |
commit | 1866baea7c5cb0766ea7cf4592ca5ebeb501e0d0 (patch) | |
tree | 0049d23c85c839bd64d4132098426460ac53011c | |
parent | 06b1145f3eb6d6a2db3e2c3c488a8e30ada6d895 (diff) |
drm/panel: pass video modes bus_flags
Make sure that the bus_flags parsed from the display timings are
passed to the connector display info.
Signed-off-by: Stefan Agner <stefan@agner.ch>
(cherry picked from commit 77d2c3b42a84a32b5ae7bbad173a72dc9398d939)
-rw-r--r-- | drivers/gpu/drm/panel/panel-lvds.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/panel/panel-lvds.c b/drivers/gpu/drm/panel/panel-lvds.c index aa104868314b..e18770be2070 100644 --- a/drivers/gpu/drm/panel/panel-lvds.c +++ b/drivers/gpu/drm/panel/panel-lvds.c @@ -118,7 +118,9 @@ static int panel_lvds_get_modes(struct drm_panel *panel) connector->display_info.height_mm = lvds->height; drm_display_info_set_bus_formats(&connector->display_info, &lvds->bus_format, 1); - connector->display_info.bus_flags = lvds->data_mirror + drm_bus_flags_from_videomode(&lvds->video_mode, + &connector->display_info.bus_flags); + connector->display_info.bus_flags |= lvds->data_mirror ? DRM_BUS_FLAG_DATA_LSB_TO_MSB : DRM_BUS_FLAG_DATA_MSB_TO_LSB; |