bcm27xx: add support for linux v5.15
[openwrt/staging/noltari.git] / target / linux / bcm27xx / patches-5.15 / 950-0804-drm-panel-panel-ilitek9881c-Add-prepare_upstream_fir.patch
1 From 3326a363351e727a227a5dfcbec1665b97a1a7e9 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
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_upstream_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 @@ -888,6 +888,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_upstream_first = true;
26 drm_panel_init(&ctx->panel, &dsi->dev, &ili9881c_funcs,
27 DRM_MODE_CONNECTOR_DSI);
28