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

This change “drm/panel: otm8009a: Add delay at the end of initialization” (commit 0084c3c) in Linux kernel is authored by Yannick Fertré <yannick.fertre [at] st.com> on Thu Mar 21 09:04:05 2019 +0100.

Description of "drm/panel: otm8009a: Add delay at the end of initialization"

The change “drm/panel: otm8009a: Add delay at the end of initialization” introduces changes as follows.

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).

Signed-off-by: Yannick Fertré <yannick.fertre@st.com>
Reviewed-by: Philippe Cornu <philippe.cornu@st.com>
Tested-by: Philippe Cornu <philippe.cornu@st.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1553155445-13407-1-git-send-email-yannick.fertre@st.com

Linux kernel releases containing commit 0084c3c

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "drm/panel: otm8009a: Add delay at the end of initialization"

There are 3 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 3 +++
 1 file changed, 3 insertions(+)
 
diff --git a/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c b/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c
index 87fa316e1d7b..58ccf648b70f 100644
--- a/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c
+++ b/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c
@@ -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;
 }
 

The commit for this change in Linux stable tree is 0084c3c (patch).

Last modified: 2020/02/09