drm/panel: panel-ilitek9881c: Add prepare_upstream_first flag
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Thu, 31 Mar 2022 11:05:04 +0000 (12:05 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Thu, 31 Mar 2022 11:11:50 +0000 (12:11 +0100)
The panel sends MIPI DCS commands during prepare and is expecting
the bus to remain in LP-11 state in-between.

Set the prepare_upstream_first flag so that the upstream DSI host
is prepared / pre_enabled first, and therefore the bus is in a
defined state.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/gpu/drm/panel/panel-ilitek-ili9881c.c

index 5446b07..c2afc43 100644 (file)
@@ -888,6 +888,7 @@ static int ili9881c_dsi_probe(struct mipi_dsi_device *dsi)
        ctx->dsi = dsi;
        ctx->desc = of_device_get_match_data(&dsi->dev);
 
+       ctx->panel.prepare_upstream_first = true;
        drm_panel_init(&ctx->panel, &dsi->dev, &ili9881c_funcs,
                       DRM_MODE_CONNECTOR_DSI);