Browse Source

disp: msm: sde: wait for active region only on DSI panel

DCS commands are not supported on DP displays, thus there is
no need to wait for active region to start before triggering
a DCS command which can cause additional latency during power
ON use case.

This change skips the active region wait for non DSI panels.

Change-Id: I50c6b808f839468bda74b13d7a75e8410d81dd0d
Signed-off-by: Amine Najahi <[email protected]>
Amine Najahi 3 years ago
parent
commit
0682377d91
1 changed files with 3 additions and 2 deletions
  1. 3 2
      msm/sde/sde_encoder_phys_vid.c

+ 3 - 2
msm/sde/sde_encoder_phys_vid.c

@@ -1164,8 +1164,9 @@ static int sde_encoder_phys_vid_poll_for_active_region(struct sde_encoder_phys *
 	vid_enc = to_sde_encoder_phys_vid(phys_enc);
 	timing = &vid_enc->timing_params;
 
-	/* if programmable fetch is not enabled return early */
-	if (!programmable_fetch_get_num_lines(vid_enc, timing))
+	/* if programmable fetch is not enabled return early or if it is not a DSI interface*/
+	if (!programmable_fetch_get_num_lines(vid_enc, timing) ||
+			phys_enc->hw_intf->cap->type != INTF_DSI)
 		return 0;
 
 	poll_time_us = DIV_ROUND_UP(1000000, timing->vrefresh) / MAX_POLL_CNT;