2023-06-08 17:49:36 +00:00
|
|
|
From 942d55434af46aebe8f5508995807253a6b235b3 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
|
|
Date: Thu, 31 Mar 2022 12:05:04 +0100
|
|
|
|
Subject: [PATCH] drm/panel: panel-ilitek9881c: Add
|
2023-07-20 09:51:10 +00:00
|
|
|
prepare_prev_first flag
|
2023-06-08 17:49:36 +00:00
|
|
|
|
|
|
|
The panel sends MIPI DCS commands during prepare and is expecting
|
|
|
|
the bus to remain in LP-11 state in-between.
|
|
|
|
|
2023-07-20 09:51:10 +00:00
|
|
|
Set the prepare_prev_first flag so that the upstream DSI host
|
2023-06-08 17:49:36 +00:00
|
|
|
is prepared / pre_enabled first, and therefore the bus is in a
|
|
|
|
defined state.
|
|
|
|
|
|
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
|
|
---
|
|
|
|
drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 1 +
|
|
|
|
1 file changed, 1 insertion(+)
|
|
|
|
|
|
|
|
--- a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c
|
|
|
|
+++ b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c
|
|
|
|
@@ -1131,6 +1131,7 @@ static int ili9881c_dsi_probe(struct mip
|
|
|
|
ctx->dsi = dsi;
|
|
|
|
ctx->desc = of_device_get_match_data(&dsi->dev);
|
|
|
|
|
2023-07-20 09:51:10 +00:00
|
|
|
+ ctx->panel.prepare_prev_first = true;
|
2023-06-08 17:49:36 +00:00
|
|
|
drm_panel_init(&ctx->panel, &dsi->dev, &ili9881c_funcs,
|
|
|
|
DRM_MODE_CONNECTOR_DSI);
|
|
|
|
|