Add a call to drm_display_info_set_bus_formats() in hx8394_get_modes()
to populate the connector's bus_formats field with the panel's bus
format.This ensures display bus format information is available to other
components that may need it later such as to identify and match the input
bus format correctly based on the panel description.

Signed-off-by: Manikandan Muralidharan <[email protected]>
---
 drivers/gpu/drm/panel/panel-himax-hx8394.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/panel/panel-himax-hx8394.c 
b/drivers/gpu/drm/panel/panel-himax-hx8394.c
index c4d3e09a228d..cdd72235fde6 100644
--- a/drivers/gpu/drm/panel/panel-himax-hx8394.c
+++ b/drivers/gpu/drm/panel/panel-himax-hx8394.c
@@ -725,6 +725,8 @@ static int hx8394_get_modes(struct drm_panel *panel,
        mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED;
        connector->display_info.width_mm = mode->width_mm;
        connector->display_info.height_mm = mode->height_mm;
+       drm_display_info_set_bus_formats(&connector->display_info,
+                                        &ctx->desc->format, 1);
        drm_mode_probed_add(connector, mode);
 
        return 1;

base-commit: bdaf9fa04946b9d1086d69b7269c113ace8e9f76
-- 
2.25.1

Reply via email to