]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/panel: visionox-vtdr6130: Set prepare_prev_first flag
authorJessica Zhang <quic_jesszhan@quicinc.com>
Fri, 2 Feb 2024 00:10:15 +0000 (16:10 -0800)
committerNeil Armstrong <neil.armstrong@linaro.org>
Fri, 2 Feb 2024 21:31:05 +0000 (22:31 +0100)
The DSI host must be enabled for the panel to be initialized in
prepare(). Set the prepare_prev_first flag to guarantee this.

Signed-off-by: Jessica Zhang <quic_jesszhan@quicinc.com>
Acked-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20240201-visionox-vtdr-prev-first-v2-1-32db52867624@quicinc.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240201-visionox-vtdr-prev-first-v2-1-32db52867624@quicinc.com
drivers/gpu/drm/panel/panel-visionox-vtdr6130.c

index a23407b9f6fb674bf174ba6ec3a6da9a650a87dd..540099253e1bd27357997eda7d0d26e6c10aa33f 100644 (file)
@@ -287,6 +287,7 @@ static int visionox_vtdr6130_probe(struct mipi_dsi_device *dsi)
        dsi->format = MIPI_DSI_FMT_RGB888;
        dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_NO_EOT_PACKET |
                          MIPI_DSI_CLOCK_NON_CONTINUOUS;
+       ctx->panel.prepare_prev_first = true;
 
        drm_panel_init(&ctx->panel, dev, &visionox_vtdr6130_panel_funcs,
                       DRM_MODE_CONNECTOR_DSI);