drm/panel: simple: delay init time after panel reset

Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
Change-Id: Ifb9b57bb7ce84263dea96958f6a4da9c7a6af545
This commit is contained in:
Guochun Huang
2022-06-01 10:38:08 +08:00
committed by Tao Huang
parent 65debf2d91
commit d416f690ee

View File

@@ -551,13 +551,13 @@ static int panel_simple_prepare(struct drm_panel *panel)
gpiod_direction_output(p->reset_gpio, 0);
if (p->desc->delay.init)
msleep(p->desc->delay.init);
if (p->desc->init_seq)
if (p->dsi)
panel_simple_xfer_dsi_cmd_seq(p, p->desc->init_seq);
if (p->desc->delay.init)
msleep(p->desc->delay.init);
p->prepared = true;
return 0;