1 From 942d55434af46aebe8f5508995807253a6b235b3 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Thu, 31 Mar 2022 12:05:04 +0100
4 Subject: [PATCH] drm/panel: panel-ilitek9881c: Add
5 prepare_upstream_first flag
7 The panel sends MIPI DCS commands during prepare and is expecting
8 the bus to remain in LP-11 state in-between.
10 Set the prepare_upstream_first flag so that the upstream DSI host
11 is prepared / pre_enabled first, and therefore the bus is in a
14 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
16 drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 1 +
17 1 file changed, 1 insertion(+)
19 --- a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c
20 +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c
21 @@ -1131,6 +1131,7 @@ static int ili9881c_dsi_probe(struct mip
23 ctx->desc = of_device_get_match_data(&dsi->dev);
25 + ctx->panel.prepare_upstream_first = true;
26 drm_panel_init(&ctx->panel, &dsi->dev, &ili9881c_funcs,
27 DRM_MODE_CONNECTOR_DSI);