Просмотр исходного кода

Merge "disp: msm: dsi: swap DSI timing engine programming and ROI cmd tx"

qctecmdr 3 лет назад
Родитель
Сommit
721fee5459
1 измененных файлов с 6 добавлено и 6 удалено
  1. 6 6
      msm/dsi/dsi_display.c

+ 6 - 6
msm/dsi/dsi_display.c

@@ -8135,17 +8135,17 @@ static int dsi_display_set_roi(struct dsi_display *display,
 		if (!changed)
 			continue;
 
-		/* send the new roi to the panel via dcs commands */
-		rc = dsi_panel_send_roi_dcs(display->panel, i, &ctrl_roi);
+		/* re-program the ctrl with the timing based on the new roi */
+		rc = dsi_ctrl_timing_setup(ctrl->ctrl);
 		if (rc) {
-			DSI_ERR("dsi_panel_set_roi failed rc %d\n", rc);
+			DSI_ERR("dsi_ctrl_setup failed rc %d\n", rc);
 			return rc;
 		}
 
-		/* re-program the ctrl with the timing based on the new roi */
-		rc = dsi_ctrl_timing_setup(ctrl->ctrl);
+		/* send the new roi to the panel via dcs commands */
+		rc = dsi_panel_send_roi_dcs(display->panel, i, &ctrl_roi);
 		if (rc) {
-			DSI_ERR("dsi_ctrl_setup failed rc %d\n", rc);
+			DSI_ERR("dsi_panel_set_roi failed rc %d\n", rc);
 			return rc;
 		}
 	}