From: Konrad Dybcio Date: Thu, 1 Feb 2024 22:17:40 +0000 (+0100) Subject: drm/panel: novatek-nt36523: Set prepare_prev_first X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d543d1b6086b18f8d8b4b26bcdf86566382a3d35;p=linux.git drm/panel: novatek-nt36523: Set prepare_prev_first The .prepare callback contains the init sequence, so the DSI host *must* be enabled at that point. Set the prepare_prev_first flag to ensure that. Signed-off-by: Konrad Dybcio Reviewed-by: Jessica Zhang Link: https://lore.kernel.org/r/20240201-topic-3623_fix-v1-1-86ee6f20876e@linaro.org Signed-off-by: Neil Armstrong Link: https://patchwork.freedesktop.org/patch/msgid/20240201-topic-3623_fix-v1-1-86ee6f20876e@linaro.org --- diff --git a/drivers/gpu/drm/panel/panel-novatek-nt36523.c b/drivers/gpu/drm/panel/panel-novatek-nt36523.c index d6fa76dbf9481..18bd2ee712010 100644 --- a/drivers/gpu/drm/panel/panel-novatek-nt36523.c +++ b/drivers/gpu/drm/panel/panel-novatek-nt36523.c @@ -1268,6 +1268,8 @@ static int nt36523_probe(struct mipi_dsi_device *dsi) return ret; } + pinfo->panel.prepare_prev_first = true; + if (pinfo->desc->has_dcs_backlight) { pinfo->panel.backlight = nt36523_create_backlight(dsi); if (IS_ERR(pinfo->panel.backlight))