[PATCH 2/3] drm/panel: pass video modes bus_flags

Oleksandr Suvorov oleksandr.suvorov at toradex.com
Wed Jan 15 12:34:19 UTC 2020


From: Stefan Agner <stefan at agner.ch>

Make sure that the bus_flags parsed from the display timings are
passed to the connector display info.

Signed-off-by: Stefan Agner <stefan at agner.ch>
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov at toradex.com>
---

 drivers/gpu/drm/panel/panel-lvds.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/panel/panel-lvds.c b/drivers/gpu/drm/panel/panel-lvds.c
index 21a169aa3ae4..334a67c1a52f 100644
--- a/drivers/gpu/drm/panel/panel-lvds.c
+++ b/drivers/gpu/drm/panel/panel-lvds.c
@@ -101,7 +101,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;
 
-- 
2.24.1



More information about the dri-devel mailing list