Re: [PATCH 2/2] drm/panel: raydium-rm68200: Set prepare_prev_first
From: Luca Ceresoli
Date: Fri Nov 27 2026 - 12:24:43 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>
>
> diff --git a/drivers/gpu/drm/panel/panel-raydium-rm68200.c b/drivers/gpu/drm/panel/panel-raydium-rm68200.c
> index c535dc931903..cc87f587ca78 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);
Reviewed-by: Luca Ceresoli <luca.ceresoli@xxxxxxxxxxx>
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com