Pārlūkot izejas kodu

disp: msm: dsi: signal pending clock change in case of DMS

When there is a change in resolution or FPS, a new clock rate is
calculated. During such a Dynamic Mode Switch, the clock rate
change pending flag needs to be set after it has been calculated.
This flag is later checked before kickoff and the clocks are updated
accordingly.

Change-Id: Iec102796d5c61d01c567f0b6676e9a6d4ed94268
Signed-off-by: Satya Rama Aditya Pinapala <[email protected]>
Satya Rama Aditya Pinapala 6 gadi atpakaļ
vecāks
revīzija
094f183278
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      msm/dsi/dsi_display.c

+ 4 - 0
msm/dsi/dsi_display.c

@@ -4450,6 +4450,10 @@ static int dsi_display_set_mode_sub(struct dsi_display *display,
 		}
 	}
 
+	if ((mode->dsi_mode_flags & DSI_MODE_FLAG_DMS) &&
+			(display->panel->panel_mode == DSI_OP_CMD_MODE))
+		atomic_set(&display->clkrate_change_pending, 1);
+
 	if (priv_info->phy_timing_len) {
 		display_for_each_ctrl(i, display) {
 			ctrl = &display->ctrl[i];