From 9398024defa5147d7292af0ea0f21930e947a1d0 Mon Sep 17 00:00:00 2001 From: Dave Stevenson Date: Wed, 9 Aug 2023 21:04:40 +0100 Subject: [PATCH] drm: panel: jdi-lt070me05000: Add prepare_upstream_first flag The panel driver wants to send DCS commands from the prepare hook, therefore the DSI host wants to be pre_enabled first. Set the flag to achieve this. https://forums.raspberrypi.com/viewtopic.php?t=354708 Signed-off-by: Dave Stevenson --- drivers/gpu/drm/panel/panel-jdi-lt070me05000.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/panel/panel-jdi-lt070me05000.c b/drivers/gpu/drm/panel/panel-jdi-lt070me05000.c index 74350f95d1cf5d..d7cae8f14586b8 100644 --- a/drivers/gpu/drm/panel/panel-jdi-lt070me05000.c +++ b/drivers/gpu/drm/panel/panel-jdi-lt070me05000.c @@ -437,6 +437,7 @@ static int jdi_panel_add(struct jdi_panel *jdi) return ret; } + jdi->base.prepare_upstream_first = true; drm_panel_init(&jdi->base, &jdi->dsi->dev, &jdi_panel_funcs, DRM_MODE_CONNECTOR_DSI);