]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/panel: visionox-rm69299: Don't clear all mode flags
authorGuido Günther <agx@sigxcpu.org>
Wed, 10 Sep 2025 16:39:57 +0000 (18:39 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Wed, 1 Oct 2025 07:14:51 +0000 (09:14 +0200)
Don't clear all mode flags. We only want to maek sure we use HS mode
during unprepare.

Fixes: c7f66d32dd431 ("drm/panel: add support for rm69299 visionox panel")
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20250910-shift6mq-panel-v3-2-a7729911afb9@sigxcpu.org
drivers/gpu/drm/panel/panel-visionox-rm69299.c

index 5491d601681cff52eca1d72ad4489731d2276c30..66c30db3b73a71f23b587b6e994a22dba5e85d25 100644 (file)
@@ -192,7 +192,7 @@ static int visionox_rm69299_unprepare(struct drm_panel *panel)
        struct visionox_rm69299 *ctx = panel_to_ctx(panel);
        struct mipi_dsi_multi_context dsi_ctx = { .dsi = ctx->dsi };
 
-       ctx->dsi->mode_flags = 0;
+       ctx->dsi->mode_flags &= ~MIPI_DSI_MODE_LPM;
 
        mipi_dsi_dcs_set_display_off_multi(&dsi_ctx);