ce66c7d2eef29adcac189880cef74d4ea57f3579
[openwrt/staging/blocktrron.git] /
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_prev_first flag
6
7 The panel sends MIPI DCS commands during prepare and is expecting
8 the bus to remain in LP-11 state in-between.
9
10 Set the prepare_prev_first flag so that the upstream DSI host
11 is prepared / pre_enabled first, and therefore the bus is in a
12 defined state.
13
14 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
15 ---
16 drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 1 +
17 1 file changed, 1 insertion(+)
18
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
22 ctx->dsi = dsi;
23 ctx->desc = of_device_get_match_data(&dsi->dev);
24
25 + ctx->panel.prepare_prev_first = true;
26 drm_panel_init(&ctx->panel, &dsi->dev, &ili9881c_funcs,
27 DRM_MODE_CONNECTOR_DSI);
28