| From ad37ccb9e2bda77c6f75b56b06edf567ed780a62 Mon Sep 17 00:00:00 2001 |
| From: Sasha Levin <sashal@kernel.org> |
| Date: Wed, 10 Sep 2025 18:39:57 +0200 |
| Subject: drm/panel: visionox-rm69299: Don't clear all mode flags |
| MIME-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| From: Guido Günther <agx@sigxcpu.org> |
| |
| [ Upstream commit 39144b611e9cd4f5814f4098c891b545dd70c536 ] |
| |
| 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 |
| Signed-off-by: Sasha Levin <sashal@kernel.org> |
| --- |
| drivers/gpu/drm/panel/panel-visionox-rm69299.c | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| diff --git a/drivers/gpu/drm/panel/panel-visionox-rm69299.c b/drivers/gpu/drm/panel/panel-visionox-rm69299.c |
| index b380bbb0e0d0a..eb8bc6f6c118c 100644 |
| --- a/drivers/gpu/drm/panel/panel-visionox-rm69299.c |
| +++ b/drivers/gpu/drm/panel/panel-visionox-rm69299.c |
| @@ -64,7 +64,7 @@ static int visionox_rm69299_unprepare(struct drm_panel *panel) |
| struct visionox_rm69299 *ctx = panel_to_ctx(panel); |
| int ret; |
| |
| - ctx->dsi->mode_flags = 0; |
| + ctx->dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; |
| |
| ret = mipi_dsi_dcs_write(ctx->dsi, MIPI_DCS_SET_DISPLAY_OFF, NULL, 0); |
| if (ret < 0) |
| -- |
| 2.51.0 |
| |