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

Commit ab7585f4 authored by Ajay Singh Parmar's avatar Ajay Singh Parmar
Browse files

drm/msm/dp: use correct data clock rate



In case the maximum data clock rate has been set by debug module,
use the minimum of what the target supports and debug clock rate.
This is needed to support different clock rate requirements.

Change-Id: I396c73a6807460ed64c420a088d956ed635ade3e
Signed-off-by: default avatarAjay Singh Parmar <aparmar@codeaurora.org>
parent ae8071b9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1897,6 +1897,8 @@ struct dp_debug *dp_debug_get(struct dp_debug_in *in)
	dp_debug->dp_mst_connector_list.conn = NULL;
	dp_debug->dp_mst_connector_list.debug_en = false;

	dp_debug->max_pclk_khz = debug->parser->max_pclk_khz;

	return dp_debug;
error:
	return ERR_PTR(rc);
+2 −1
Original line number Diff line number Diff line
@@ -654,7 +654,8 @@ static int dp_display_process_hpd_high(struct dp_display_private *dp)

	dp->is_connected = true;

	dp->dp_display.max_pclk_khz = dp->parser->max_pclk_khz;
	dp->dp_display.max_pclk_khz = min(dp->parser->max_pclk_khz,
					dp->debug->max_pclk_khz);

	dp_display_host_init(dp);