]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/panel: sharp-ls043t1le01: make use of prepare_prev_first
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Mon, 23 Mar 2026 01:21:49 +0000 (03:21 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Thu, 26 Mar 2026 09:00:04 +0000 (10:00 +0100)
The DSI link must be powered up to let panel driver to talk to the panel
during prepare() callback execution. Set the prepare_prev_first flag to
guarantee this.

Fixes: 9e15123eca79 ("drm/msm/dsi: Stop unconditionally powering up DSI hosts at modeset")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patch.msgid.link/20260323-panel-fix-v1-1-9f12b09161e8@oss.qualcomm.com
drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c

index 36abfa2e65e962af2a08aec3e63ba1077a2c43d4..dd1eaba23ad3c69de49741657ce9490cde11ab74 100644 (file)
@@ -201,6 +201,7 @@ static int sharp_nt_panel_add(struct sharp_nt_panel *sharp_nt)
 
        drm_panel_init(&sharp_nt->base, &sharp_nt->dsi->dev,
                       &sharp_nt_panel_funcs, DRM_MODE_CONNECTOR_DSI);
+       sharp_nt->base.prepare_prev_first = true;
 
        ret = drm_panel_of_backlight(&sharp_nt->base);
        if (ret)