Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions drivers/gpu/drm/msm/dsi/dsi_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -1197,11 +1197,21 @@ static void dsi_wait4video_done(struct msm_dsi_host *msm_host)

static void dsi_wait4video_eng_busy(struct msm_dsi_host *msm_host)
{
const struct msm_dsi_cfg_handler *cfg_hnd = msm_host->cfg_hnd;
u32 data;

if (!(msm_host->mode_flags & MIPI_DSI_MODE_VIDEO))
return;

/*
* With BLOCK_DMA_WITHIN_FRAME the hardware holds the DMA until the
* blanking itself. Sleeping past VIDEO_DONE misses short blankings
* and costs a whole frame per command.
*/
if (cfg_hnd->major == MSM_DSI_VER_MAJOR_6G &&
cfg_hnd->minor >= MSM_DSI_6G_VER_MINOR_V1_2)
return;

data = dsi_read(msm_host, REG_DSI_STATUS0);

/* if video mode engine is not busy, its because
Expand Down
Loading