linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/panel: Add prepare_prev_first flag to Visionox VTDR6130
@ 2023-07-25 22:56 Jessica Zhang
  2023-07-31 13:00 ` Neil Armstrong
  0 siblings, 1 reply; 30+ messages in thread
From: Jessica Zhang @ 2023-07-25 22:56 UTC (permalink / raw)
  To: Neil Armstrong, Sam Ravnborg, David Airlie, Daniel Vetter
  Cc: quic_abhinavk, quic_parellan, dri-devel, linux-kernel,
	Jessica Zhang

Due to a recent introduction of the pre_enable_prev_first bridge flag [1],
the panel driver will be probed before the DSI is enabled, causing the
DCS commands to fail to send.

Ensure that DSI is enabled before panel probe by setting the
prepare_prev_first flag for the panel.

[1] commit 4fb912e5e190 ("drm/bridge: Introduce pre_enable_prev_first to alter bridge init order")

Fixes: 2349183d32d8 ("drm/panel: add visionox vtdr6130 DSI panel driver")
Signed-off-by: Jessica Zhang <quic_jesszhan@quicinc.com>
---
 drivers/gpu/drm/panel/panel-visionox-vtdr6130.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/panel/panel-visionox-vtdr6130.c b/drivers/gpu/drm/panel/panel-visionox-vtdr6130.c
index bb0dfd86ea67..e1363e128e7e 100644
--- a/drivers/gpu/drm/panel/panel-visionox-vtdr6130.c
+++ b/drivers/gpu/drm/panel/panel-visionox-vtdr6130.c
@@ -296,6 +296,7 @@ static int visionox_vtdr6130_probe(struct mipi_dsi_device *dsi)
 	dsi->format = MIPI_DSI_FMT_RGB888;
 	dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_NO_EOT_PACKET |
 			  MIPI_DSI_CLOCK_NON_CONTINUOUS;
+	ctx->panel.prepare_prev_first = true;
 
 	drm_panel_init(&ctx->panel, dev, &visionox_vtdr6130_panel_funcs,
 		       DRM_MODE_CONNECTOR_DSI);

---
base-commit: 28a5c036b05fc5c935cc72d76abd3589825ea9cd
change-id: 20230717-visionox-vtdr-prev-first-e00ae02eec9f

Best regards,
-- 
Jessica Zhang <quic_jesszhan@quicinc.com>


^ permalink raw reply related	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2023-08-30  3:42 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-25 22:56 [PATCH] drm/panel: Add prepare_prev_first flag to Visionox VTDR6130 Jessica Zhang
2023-07-31 13:00 ` Neil Armstrong
2023-08-03 17:19   ` Jessica Zhang
2023-08-10 16:26     ` Abhinav Kumar
2023-08-14  8:01       ` neil.armstrong
2023-08-14 18:02         ` Abhinav Kumar
2023-08-16  7:51           ` neil.armstrong
2023-08-17 18:35             ` Dmitry Baryshkov
2023-08-18  8:25               ` neil.armstrong
2023-08-18 10:27                 ` Dmitry Baryshkov
2023-08-21 11:26                   ` Dave Stevenson
2023-08-21  8:17                 ` Maxime Ripard
2023-08-21 10:01                   ` neil.armstrong
2023-08-21 11:36                     ` Maxime Ripard
2023-08-25 18:37                     ` Jessica Zhang
2023-08-28  8:49                       ` neil.armstrong
2023-08-28 17:07                         ` Abhinav Kumar
2023-08-29  9:22                           ` neil.armstrong
2023-08-29  9:26                             ` Dmitry Baryshkov
2023-08-29 16:36                               ` Abhinav Kumar
2023-08-29 16:43                                 ` Dmitry Baryshkov
2023-08-29 17:21                                   ` Abhinav Kumar
2023-08-29 18:51                                     ` Dmitry Baryshkov
2023-08-29 19:08                                       ` Abhinav Kumar
2023-08-29 19:15                                         ` Dmitry Baryshkov
2023-08-29 19:21                                           ` Abhinav Kumar
2023-08-30  2:05                                             ` Dmitry Baryshkov
2023-08-30  3:40                                               ` Abhinav Kumar
2023-08-29 14:13                         ` Dave Stevenson
2023-08-29 20:43                           ` Abhinav Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).