From 50d32f2b0e8bc6a27ef23140ebd27c36a963418d Mon Sep 17 00:00:00 2001 From: Liu Ying <victor.liu@nxp.com> Date: Fri, 20 Aug 2021 16:19:48 +0800 Subject: [PATCH] LF-4316 drm/panel: panel-raydium-rm67191: Set DSI mode to 0x0B for RM67199 Without this patch, the driver sets the DSI mode to 0x08 for RM67199, which means 'command RAM mode' as the panel data sheet indicates. In that mode, something like screen tearing effect can be seen when doing page flip test by using modetest. This patch changes the DSI mode to 0x0B for RM67199, which means 'video RAM capture mode' and aligns to the setting of RM67191. Fixes: ac708b5b2804 ("MLK-24805-1: drm/panel: rm67191: Add support for rm67199") Cc: Sandor Yu <Sandor.yu@nxp.com> Cc: Robert Chiras <robert.chiras@nxp.com> Reviewed-by: Sandor Yu <Sandor.yu@nxp.com> Signed-off-by: Liu Ying <victor.liu@nxp.com> Acked-by: Jason Liu <jason.hui.liu@nxp.com> --- drivers/gpu/drm/panel/panel-raydium-rm67191.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-raydium-rm67191.c b/drivers/gpu/drm/panel/panel-raydium-rm67191.c index cab3521af2d79e..98399135684398 100644 --- a/drivers/gpu/drm/panel/panel-raydium-rm67191.c +++ b/drivers/gpu/drm/panel/panel-raydium-rm67191.c @@ -366,7 +366,7 @@ static int rm67199_enable(struct rad_panel *panel) goto fail; /* Set DSI mode */ - ret = mipi_dsi_generic_write(dsi, (u8[]){ 0xC2, 0x08 }, 2); + ret = mipi_dsi_generic_write(dsi, (u8[]){ 0xC2, 0x0B }, 2); if (ret < 0) { dev_err(dev, "Failed to set DSI mode (%d)\n", ret); goto fail; -- GitLab