62e408b514d2c408fe639748e03eebd577d8beb7
[openwrt/staging/ansuel.git] /
1 From 63d8c0f5185169058384142547655fc038aae0bf Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Wed, 9 Aug 2023 21:04:40 +0100
4 Subject: [PATCH] drm: panel: jdi-lt070me05000: Add prepare_upstream_first flag
5
6 The panel driver wants to send DCS commands from the prepare
7 hook, therefore the DSI host wants to be pre_enabled first.
8 Set the flag to achieve this.
9
10 https://forums.raspberrypi.com/viewtopic.php?t=354708
11
12 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
13 ---
14 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c | 1 +
15 1 file changed, 1 insertion(+)
16
17 --- a/drivers/gpu/drm/panel/panel-jdi-lt070me05000.c
18 +++ b/drivers/gpu/drm/panel/panel-jdi-lt070me05000.c
19 @@ -437,6 +437,7 @@ static int jdi_panel_add(struct jdi_pane
20 return ret;
21 }
22
23 + jdi->base.prepare_upstream_first = true;
24 drm_panel_init(&jdi->base, &jdi->dsi->dev, &jdi_panel_funcs,
25 DRM_MODE_CONNECTOR_DSI);
26