Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9bebdf0 authored by Lipsa Rout's avatar Lipsa Rout
Browse files

drm/msm/dsi-staging: Set transfer time to zero as per mode of timing node



Currently, mdp_transfer_time_us is being set to zero for video
mode panels. This leads to zero mdp_transfer_time_us for command
mode in case of video mode panels supporting panel operating
mode switch. As a  result, there is miscalculation of clock to
zero when command mode doesn't support dynamic clock switch. This
change sets the mdp_transfer_time_us to zero for video modes.

Change-Id: I6e798125921db9ea2d76b76853a28cd981747617
Signed-off-by: default avatarLipsa Rout <lrout@codeaurora.org>
parent 3321581d
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -3637,9 +3637,6 @@ int dsi_panel_get_mode(struct dsi_panel *panel,
			goto parse_fail;
		}

		if (panel->panel_mode == DSI_OP_VIDEO_MODE)
			mode->priv_info->mdp_transfer_time_us = 0;

		rc = dsi_panel_parse_dsc_params(mode, utils);
		if (rc) {
			pr_err("failed to parse dsc params, rc=%d\n", rc);
@@ -3692,6 +3689,9 @@ int dsi_panel_get_mode(struct dsi_panel *panel,
		} else {
			mode->panel_mode = panel->panel_mode;
		}

		if (mode->panel_mode == DSI_OP_VIDEO_MODE)
			mode->priv_info->mdp_transfer_time_us = 0;
	}
	goto done;