drm/panel: novatek-nt36523: Set prepare_prev_first
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Thu, 1 Feb 2024 22:17:40 +0000 (23:17 +0100)
committerNeil Armstrong <neil.armstrong@linaro.org>
Fri, 2 Feb 2024 21:30:44 +0000 (22:30 +0100)
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 <konrad.dybcio@linaro.org>
Reviewed-by: Jessica Zhang <quic_jesszhan@quicinc.com>
Link: https://lore.kernel.org/r/20240201-topic-3623_fix-v1-1-86ee6f20876e@linaro.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240201-topic-3623_fix-v1-1-86ee6f20876e@linaro.org
drivers/gpu/drm/panel/panel-novatek-nt36523.c

index d6fa76dbf94817100668931ffa55ccece456b9be..18bd2ee7120100a17fbf66fa0d6659636ed97b69 100644 (file)
@@ -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))