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

Commit 047ee8e9 authored by Tharun Raj Soma's avatar Tharun Raj Soma
Browse files

drm/msm/dsi-staging: fix default value for mdp transfer time



Fix the default value assigned to mdp transfer time when
corresponding dt entry of the panel binded is not available.

Change-Id: I3f486709b0cc9b7ccee446ebde640a2f8f607ec7
Signed-off-by: default avatarTharun Raj Soma <tsoma@codeaurora.org>
parent 7b2ef2bf
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -848,12 +848,12 @@ static int dsi_panel_parse_timing(struct dsi_mode_info *mode,

	rc = utils->read_u32(utils->data, "qcom,mdss-mdp-transfer-time-us",
			&mode->mdp_transfer_time_us);
	if (!rc)
	if (rc) {
		pr_debug("fallback to default mdp-transfer-time-us\n");
		mode->mdp_transfer_time_us = DEFAULT_MDP_TRANSFER_TIME;
	}
	display_mode->priv_info->mdp_transfer_time_us =
					mode->mdp_transfer_time_us;
	else
		display_mode->priv_info->mdp_transfer_time_us =
			DEFAULT_MDP_TRANSFER_TIME;

	rc = utils->read_u32(utils->data,
				"qcom,mdss-dsi-panel-framerate",