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

Commit b3ea203b authored by Raviteja Tamatam's avatar Raviteja Tamatam Committed by Steve Cohen
Browse files

drm: msm: dsi-staging: update dfps validation mode check



Crtc mode is updated in the commit path and this should
not be used for validation of dfps change. Instead,
crtc state mode variable needs to used for dfps validation
which contains latest state.

Change-Id: I6dd1273cc5eac94b11c24afb6d1748369cd73be8
Signed-off-by: default avatarRaviteja Tamatam <travitej@codeaurora.org>
parent 75ceff9a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -282,7 +282,7 @@ static bool dsi_bridge_mode_fixup(struct drm_bridge *bridge,


	if (bridge->encoder && bridge->encoder->crtc) {
	if (bridge->encoder && bridge->encoder->crtc) {


		convert_to_dsi_mode(&bridge->encoder->crtc->mode,
		convert_to_dsi_mode(&bridge->encoder->crtc->state->mode,
							&cur_dsi_mode);
							&cur_dsi_mode);
		rc = dsi_display_validate_mode_vrr(c_bridge->display,
		rc = dsi_display_validate_mode_vrr(c_bridge->display,
					&cur_dsi_mode, &dsi_mode);
					&cur_dsi_mode, &dsi_mode);