[PATCH 2/2] drm/panel: raydium-rm68200: Set prepare_prev_first
From: Stefan Ghetu
Date: Wed Nov 25 2026 - 02:55:18 EST
rm68200_unprepare() sends MIPI_DCS_SET_DISPLAY_OFF and
MIPI_DCS_ENTER_SLEEP_MODE, and rm68200_prepare() sends the init
sequence followed by MIPI_DCS_EXIT_SLEEP_MODE and
MIPI_DCS_SET_DISPLAY_ON. All of these need a working DSI link.
By default, the panel bridge is prepared before the upstream DSI host
bridge's ->atomic_pre_enable() and unprepared after the DSI host
bridge's ->atomic_post_disable(). A DSI host that tears down the link
in ->atomic_post_disable() therefore does so before the panel has sent
its shutdown commands.
Set prepare_prev_first so the panel is prepared after, and unprepared
before, the DSI host bridge, which is what a panel driven by DCS
commands from its prepare/unprepare callbacks requires.
Signed-off-by: Stefan Ghetu <stefan.ghetu@xxxxxxx>
---
drivers/gpu/drm/panel/panel-raydium-rm68200.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/panel/panel-raydium-rm68200.c b/drivers/gpu/drm/panel/panel-raydium-rm68200.c
index c535dc931903e..cc87f587ca78f 100644
--- a/drivers/gpu/drm/panel/panel-raydium-rm68200.c
+++ b/drivers/gpu/drm/panel/panel-raydium-rm68200.c
@@ -360,6 +360,8 @@ static int rm68200_probe(struct mipi_dsi_device *dsi)
if (ret)
return ret;
+ ctx->panel.prepare_prev_first = true;
+
drm_panel_add(&ctx->panel);
ret = mipi_dsi_attach(dsi);
--
2.53.0