drm/panel: ilitek-ili9881c: make use of prepare_prev_first
authorMarco Felsch <m.felsch@pengutronix.de>
Thu, 23 Nov 2023 17:08:04 +0000 (18:08 +0100)
committerNeil Armstrong <neil.armstrong@linaro.org>
Tue, 5 Dec 2023 08:21:56 +0000 (09:21 +0100)
The panel.prepare() call requires an initialized MIPI-DSI host, so set
the prepare_prev_first flag to indicate that the host must be
initialized first.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20231123-drm-panel-ili9881c-am8001280g-v1-1-fdf4d624c211@pengutronix.de
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20231123-drm-panel-ili9881c-am8001280g-v1-1-fdf4d624c211@pengutronix.de
drivers/gpu/drm/panel/panel-ilitek-ili9881c.c

index 7838947..0c911ed 100644 (file)
@@ -1094,6 +1094,8 @@ static int ili9881c_dsi_probe(struct mipi_dsi_device *dsi)
                return ret;
        }
 
+       ctx->panel.prepare_prev_first = true;
+
        ret = drm_panel_of_backlight(&ctx->panel);
        if (ret)
                return ret;