disp: msm: dsi: move backlight operations to post kickoff

This change moves the backlight update operation from
drm bridge enable to connector post kickoff.

When timing engine is enabled with programmable fetch
enabled, the timing engine will start counting from
the prog_fetch_start point (which is somewhere in VFP).
It’s a grey area from that point to the actual panel
vsync and SW should not trigger DMA command during that
time.

During display resume, sometimes the INTF timing engine
do not get enabled completely at the first vblank irq.
The backlight update cmd transfer trigger as part of the
drm bridge enable can also take place at the same time,
that may cause DSI cmd transfer failure.

Change-Id: I2722d3c23012ef0e7bcc7f728ec5658318ce4e60
Signed-off-by: Rajeev Nandan <rajeevny@codeaurora.org>
This commit is contained in:
Rajeev Nandan
2020-12-01 17:05:52 +05:30
parent 5caf284ecc
commit e60959b052
3 changed files with 20 additions and 1 deletions

View File

@@ -1094,6 +1094,9 @@ int dsi_conn_post_kickoff(struct drm_connector *connector,
dsi_ctrl_setup_avr(display->ctrl[i].ctrl, enable);
}
if (display->drm_conn)
sde_connector_helper_post_kickoff(display->drm_conn);
return 0;
}