Skip to contentSkip to conversation

drm/panel: otm8009a: add delay at the end of initialization

PATCH In review Yannick Fertré 3 participants 3 messages Mar 21, 2019 – Apr 3, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/panel: otm8009a: add delay at the end of initialization

At the end of initialization, a delay is required by the panel. Without this delay, the panel could received a frame early & generate a crash of panel (black screen).

---
 drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/panel/panel-orisetech-otm8009a.c +3 -0
index 87fa316..58ccf64 100644
@@ -248,6 +248,9 @@ static int otm8009a_init_sequence(struct otm8009a *ctx)
 	/* Send Command GRAM memory write (no parameters) */
 	dcs_write_seq(ctx, MIPI_DCS_WRITE_MEMORY_START);
 
+	/* Wait a short while to let the panel be ready before the 1st frame */
+	mdelay(10);
+
 	return 0;
 }
 
Signature · 1 line
2.7.4
Reviewed-by Tested-by on v1 1/1
#1 lore raw

Dear Yannick,
Many thanks for your patch.

Best regards,
Philippe

Quoted 24 lines · Yannick Fertré

At the end of initialization, a delay is required by the panel. Without this delay, the panel could received a frame early & generate a crash of panel (black screen).

---
  drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 3 +++
  1 file changed, 3 insertions(+)
drivers/gpu/drm/panel/panel-orisetech-otm8009a.c +3 -0
index 87fa316..58ccf64 100644
@@ -248,6 +248,9 @@ static int otm8009a_init_sequence(struct otm8009a *ctx)
  	/* Send Command GRAM memory write (no parameters) */
  	dcs_write_seq(ctx, MIPI_DCS_WRITE_MEMORY_START);
 
+	/* Wait a short while to let the panel be ready before the 1st frame */
+	mdelay(10);
+
  	return 0;
  }
 
#2 lore raw
In reply to Yannick Fertré
Quoted 8 lines · Yannick Fertré

At the end of initialization, a delay is required by the panel. Without this delay, the panel could received a frame early & generate a crash of panel (black screen).

---
 drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 3 +++
 1 file changed, 3 insertions(+)

Applied. You might want to go over this panel and replace some of the mdelay() calls with msleep(). There are some that busy loop for 120 ms, which is somewhat rude. Even the mdelay(10) in this driver should be safe to convert to msleep().

Thierry

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel